永夜 Blog

编写 Lighthouse 5 的自动化测试用例时,PhpStorm 不能够自动完成。点击 $response->assertJson 时,无法找到要转到的声明。方法 'assertJson' 在 \Illuminate\Testing\TestResponse 中未找到 0

When writing an automated test case for Lighthouse 5, phpstorm cannot be completed automatically (unable to find the statement to go to)

浏览量: 3 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...

运行测试,报错:Error: Call to undefined method Illuminate\Support\Facades\Config::set() 0

When writing the automated test case of Lighthouse 5, split the test method in a file into two test methods, and report an error: Error: call to undefined method IlluMinate\Support\Facads\Config::set()

浏览量: 4 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...

运行 Lighthouse 的测试用例时,报错:Class 'Overtrue\LaravelVersionable\ServiceProvider' not found 0

When running lighthouse test case, an error is reported: classoverTrue\LaravelVersionABLE\ServiceProviderNot found

浏览量: 3 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...

运行 GraphQL Query API,响应 200。主要测试字段:themeAssets 的响应 0

When writing an automated test case for Lighthouse 5, assertion that the response has a given JSON structure, that is, only verify whether the field exists, not to verify its value

浏览量: 2 1. Run the GraphQL Query API and respond 200. The main test field: The responses of TheMeAssets. as shown in Figure 1 2. Add the test field: ThemeAssets . The main validation...

执行命令:./vendor/bin/phpunit .\Modules\ThemeStore\Tests\Functional\GraphQl\OnlineStoreThemeGraphQlApiTest.php 。报错:Failed asserting that an array has the subset Array 0

When writing the automated test case of Lighthouse 5, when you want to use a variable in the query, the error is reported: syntax error: expected $, and then failed Asserting that an array has the subset array

浏览量: 2 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...

测试队列是否生效,重启 ECS 后,新建一个话题,其详情页面的网址为:https://fanxiapp-wangqiang-larabbs.shuijingwanwq.com/topics/105 。刷新一下,其会 301 跳转至:https://fanxiapp-wangqiang-larabbs.shuijingwanwq.com/topics/105/a-german 。表明队列生效中 0

Laravel 8.x (LaRaBBS) is deployed to Alibaba Cloud ECS, based on MySQL, Redis, Supervisor, crontab implementation

浏览量: 4 1. Laravel 8.x (LaraBBS) has been implemented in the local development environment. as shown in Figure 1 2. Based on Xshell 7, log in to Alibaba Cloud ECS. View the operating system...