The name may not be greater than 50 characters.
.\vendor\bin\phpunit --bootstrap vendor\autoload.php --testdox tests
public function testCreateImgTest()
{
$user = User::find(1);
$this->actingAs($user)->get('/create')->assertOk();
}
Feature\Example
✘ Create img test
│
│ TypeError: Argument 1 passed to Illuminate\Foundation\Testing\TestCase::actingAs() must implement interface Illuminate\Contracts\Auth\Authenticatable, string given, called in C:\OSPanel\domains\rahimlara\tests\Feature\ExampleTest.php on line 26
│
│ C:\OSPanel\domains\rahimlara\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\InteractsWithAuthentication.php:16
│ C:\OSPanel\domains\rahimlara\tests\Feature\ExampleTest.php:26
#1055 - Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'prorab.category_letter_master.category_letter_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SELECT master_user.master_id,
masters.specialization,
COUNT(*) FROM master_user
LEFT JOIN masters ON master_user.master_id = masters.id
LEFT JOIN category_letter_master ON category_letter_master.master_id = master_user.master_id
WHERE city_id = 4019
GROUP BY master_user.master_id
SELECT master_user.master_id,
masters.specialization,
category_letter_master.category_letter_id,
COUNT(*) FROM master_user
LEFT JOIN masters ON master_user.master_id = masters.id
LEFT JOIN category_letter_master ON category_letter_master.master_id = master_user.master_id
WHERE city_id = 4019
GROUP BY master_user.master_id