Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/Data/Users/UserQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ public function values_can_be_plucked()
], User::query()->where('type', 'b')->pluck('name')->all());
}

/** @test **/
#[Test]
public function users_are_found_using_scopes()
{
CustomScope::register();
Expand Down
2 changes: 1 addition & 1 deletion tests/Fields/BlueprintRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public function find_or_fail_throws_exception_when_blueprint_does_not_exist()
$this->repo->findOrFail('does-not-exist');
}

/** @test */
#[Test]
public function it_gets_a_blueprint_from_split_repository()
{
$repo = (new BlueprintRepository())
Expand Down
16 changes: 8 additions & 8 deletions tests/Modifiers/DoesntOverlapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Tests\Modifiers;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Modifiers\Modify;
use Tests\TestCase;

/**
* @group array
*/
#[Group('array')]
class DoesntOverlapTest extends TestCase
{
/** @test */
#[Test]
public function it_returns_false_if_needle_found_in_array(): void
{
$haystack = ['a', 'b', 'c'];
Expand All @@ -19,7 +19,7 @@ public function it_returns_false_if_needle_found_in_array(): void
$this->assertFalse($modified);
}

/** @test */
#[Test]
public function it_returns_true_if_needle_is_not_found_in_array(): void
{
$haystack = ['a', 'b', 'c'];
Expand All @@ -28,7 +28,7 @@ public function it_returns_true_if_needle_is_not_found_in_array(): void
$this->assertTrue($modified);
}

/** @test */
#[Test]
public function it_returns_true_if_haystack_is_not_an_array(): void
{
$haystack = 'this is a string';
Expand All @@ -37,7 +37,7 @@ public function it_returns_true_if_haystack_is_not_an_array(): void
$this->assertTrue($modified);
}

/** @test */
#[Test]
public function it_returns_false_if_needle_is_an_array_and_is_found_in_array(): void
{
$haystack = ['a', 'b', 'c'];
Expand All @@ -46,7 +46,7 @@ public function it_returns_false_if_needle_is_an_array_and_is_found_in_array():
$this->assertFalse($modified);
}

/** @test */
#[Test]
public function it_returns_false_if_needle_is_an_array_and_some_are_not_found_in_array(): void
{
$haystack = ['a', 'b', 'c'];
Expand Down