Category: Web Application Development
-
Post Views: 19 1. In Shopify, the current domain name is: xxx-wangqiang.myshopify.com. as shown in Figure 1 2. On the Settings > domain name page, connect the existing domain name, and make your store easy to remember and easy to find through custom domain names. as shown in Figure 2 3. Set the domain name to: xxx-wangqiang-shopify.shuijingwanwq.com, as shown in…
-
Post Views: 18 1. When writing the automated test cases of Lighthouse 5, phpstorm cannot be completed automatically. When you click $response->assetJSON, you cannot find the statement you want to go to. fashionAssertJSONNot found in \illuminate\testing\testResponse. as shown in Figure 1 2. Print the $response object, its actual path is:\illuminate\foundation\testing\testResponse. as shown in Figure 2 3. In another project, phpstorm…
-
Post Views: 19 1. When writing the automated test case of Lighthouse 5, split a test method into two test methods. The present stage is a method 2, split into two methods 3. Run the test and report an error: Error: Error: call to undefined method illuminate\support\facades\config::set(). as shown in Figure 1 4. At this time, if any of the…
-
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: 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…