Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Sep 28, 2023
1 parent 068d858 commit e41d5d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
__DIR__ . '/src/',
__DIR__ . '/tests/',
])
->notPath('CommonTest.php')
->exclude('build')
->append([__FILE__]);

Expand Down
10 changes: 4 additions & 6 deletions tests/CommonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function testConvertToTagsWithTag()
$tag = new Tag(['name' => 'test']);
$tags = convert_to_tags($tag);

$this->assertSame(
$this->assertEquals(
[$tag],
$tags->toArray()
);
Expand All @@ -28,19 +28,17 @@ public function testConvertToTagsWithCollection()
$collection = new Collection([$tag, $tag]);
$tags = convert_to_tags($collection);

$this->assertSame(
$this->assertEquals(
[$tag, $tag],
$tags->toArray()
);
}

public function testConvertToTagsWithString()
{
$tag = new Tag(['name' => 'test']);
$collection = new Collection([$tag, $tag]);
$tags = convert_to_tags('tag1,tag2,');
$tags = convert_to_tags('tag1,tag2,');

$this->assertSame(
$this->assertEquals(
[new Tag(['name' => 'tag1']), new Tag(['name' => 'tag2'])],
$tags->toArray()
);
Expand Down

0 comments on commit e41d5d1

Please sign in to comment.