Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
named index into test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Mar 2, 2018
1 parent a801f70 commit c7ab13c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/ORM/ColumnRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c7ab13c

Please sign in to comment.