diff --git a/tests/ORM/ColumnRendererTest.php b/tests/ORM/ColumnRendererTest.php index d5ce4a1..99793ab 100644 --- a/tests/ORM/ColumnRendererTest.php +++ b/tests/ORM/ColumnRendererTest.php @@ -7,9 +7,17 @@ namespace Spiral\Tests\ORM; use Spiral\ORM\Helpers\ColumnRenderer; +use Spiral\Tests\ORM\Fixtures\User; abstract class ColumnRendererTest extends BaseTest { + public function testNamedIndexes() + { + $table = $this->orm->table(User::class); + $this->assertSame('status_index', $table->getSchema()->index(['status'])->getName()); + } + + public function testRenderString() { $table = $this->db->sample->getSchema();