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 da8c72e commit 068d858
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/CommonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

use Michalsn\CodeIgniterTags\Entities\Tag;
use Myth\Collection\Collection;
use Tests\Support\Entities\Image;
use Tests\Support\Models\ImageModel;
use Tests\Support\TestCase;

/**
Expand All @@ -18,8 +16,9 @@ public function testConvertToTagsWithTag()
$tag = new Tag(['name' => 'test']);
$tags = convert_to_tags($tag);

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

Expand All @@ -29,8 +28,9 @@ public function testConvertToTagsWithCollection()
$collection = new Collection([$tag, $tag]);
$tags = convert_to_tags($collection);

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

Expand All @@ -40,7 +40,7 @@ public function testConvertToTagsWithString()
$collection = new Collection([$tag, $tag]);
$tags = convert_to_tags('tag1,tag2,');

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

0 comments on commit 068d858

Please sign in to comment.