Author: 永夜
-
Post Views: 16 1. When running the test case of lighthouse, an error is reported: classoverTrue\LaravelVersionABLE\ServiceProvidernot found. as shown in Figure 1 2. Search the class in the IDE: overtrue\LaravelVelVersionable\ServiceProvider, not found. as shown in Figure 2 3. Find the code in the project: LaravelVersionable, find the file /bootstrap/cache/packages.phpunit.php exists in: overtrue\\LaravelVersionable\\ServiceProvider . as shown in Figure 3 4. View…
-
Post Views: 16 1. After the Git branch – after transformation, there are 2 submissions that are duplicated. as shown in Figure 1 2. Reset the version to the last submission today, as shown in Figure 2 3. Reset type: hard reset. 4. The local repository has been reset to the last commit today. 2 submissions will not be repeated.…
-
Post Views: 23 1. Error when running phpunit in Laravel 6: php fatal error: allow memory size of 1073741824 bytes exhausted (Tried to allocate 69632 bytes). as shown in Figure 1 2. Edit the php.ini file and set memory_limit = 4096M. Previously Memory_Limit = 1024M. It will not prompt again that the memory usage is too limited. 3. When running…
-
Post Views: 16 1. Reference URL:https://lighthouse-php.com/4/testing/phpunit.html#setup, test with phpunit . In Lighthouse, it is easy to add automated tests with phpunit. 2. Run the GraphQL Query API and respond 200. The main test field: The responses of TheMeAssets. as shown in Figure 1 3. Edit /modules/themestore/tests/functional/graphql/onlineStoreEthemeGraphQLapTest.php, the code is as follows 4. Execute the command: ./vendor/bin/phpunit .\modules\themestore\tests\functional\graphql\OnlineStoreEthemeGraphQLapTest.php . Error: Failed…
-
Post Views: 15 1. The name of the table field is in the form of lowercase letters and underscores. as shown in Figure 1 2. The interface is implemented based on GraphQL, and the field name that is specified as the interface response must be in the form of hump. 3. Print the parser /modules/themestore/resolver/onlinestoreetheme/themeassesResolver.php method $themeAssets, the object property…
-
Post Views: 13 1. In Lighthouse 4.10.1, add a new Query Type: There is no effect after obtaining the theme material list. 2. Check the document, there is no existence to get the list of theme materials. as shown in Figure 1 3. Refer to schema caching:https://lighthouse-php.com/4/performance/schema-caching.html, it is recommended to enable cache in production mode. Now for the local…
-
Post Views: 17 1. In the Git library, it is found that the database migration file has some changes, such as: the field MINE_TYPE is changed to MIME_TYPE. as shown in Figure 1 2. 2 database migration files, just in the last migration. as shown in Figure 2 To roll back the migration, if you want to roll back the…
-
Post Views: 70 1. On the Payment – Payment Method – Add Payment Methods page, enter the name on the bank account: Wang Qiang, and the prompt input is invalid. Bank name input: Bank of China, prompt input is invalid. as shown in Figure 1 2. Reference URL: https://support.google.com/adsense/answer/3372975?hl=zh-hans , Google AdSense Help – payment method – Wire Transfer –…