From c7ab13cb3c4bfdaf81962ffcc461a131ac952c40 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Fri, 2 Mar 2018 14:46:22 +0300 Subject: [PATCH] named index into test --- tests/ORM/ColumnRendererTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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();