mirror of https://github.com/kcal-app/kcal.git
Update test names to match general stlye
This commit is contained in:
parent
0bcd489db1
commit
6e9dc6472b
|
|
@ -26,7 +26,7 @@ class FoodApiTest extends JsonApiTestCase
|
||||||
return 'foods';
|
return 'foods';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSearchFilter(): void {
|
public function testCanUseSearchFilter(): void {
|
||||||
$attributes = [
|
$attributes = [
|
||||||
'name' => 'Popcorn',
|
'name' => 'Popcorn',
|
||||||
'detail' => 'buttered',
|
'detail' => 'buttered',
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class RecipeApiTest extends JsonApiTestCase
|
||||||
return 'recipes';
|
return 'recipes';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSearchFilter(): void {
|
public function testCanUseSearchFilter(): void {
|
||||||
$attributes = [
|
$attributes = [
|
||||||
'name' => 'Chocolate Chip Cookies',
|
'name' => 'Chocolate Chip Cookies',
|
||||||
'description' => 'Buttery, delicious cookies.',
|
'description' => 'Buttery, delicious cookies.',
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class TagApiTest extends JsonApiTestCase
|
||||||
return 'tags';
|
return 'tags';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testNameFilter(): void {
|
public function testCanUseNameFilter(): void {
|
||||||
$names = ['sweet', 'salty', 'spicy'];
|
$names = ['sweet', 'salty', 'spicy'];
|
||||||
foreach ($names as $name) {
|
foreach ($names as $name) {
|
||||||
$this->factory()->create(['name' => $name]);
|
$this->factory()->create(['name' => $name]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue