Skip to content

Commit

Permalink
Clean all the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Apr 27, 2023
1 parent cf3baa5 commit e04f4a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Common/AbstractMigrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Yiisoft\Cache\Db\Migration;
use Yiisoft\Db\Constraint\IndexConstraint;
use Yiisoft\Db\Schema\SchemaInterface;

/**
* @group Mssql
Expand Down Expand Up @@ -79,9 +80,9 @@ public function testVerifyTableStructure(): void
$this->assertSame($prefix . 'cache', $tableSchema->getName());
$this->assertSame(['id'], $tableSchema->getPrimaryKey());
$this->assertSame(['id', 'data', 'expire'], $tableSchema->getColumnNames());
$this->assertSame('string', $tableSchema->getColumn('id')?->getType());
$this->assertSame(SchemaInterface::TYPE_STRING, $tableSchema->getColumn('id')?->getType());
$this->assertSame(128, $tableSchema->getColumn('id')?->getSize());
$this->assertSame('binary', $tableSchema->getColumn('data')?->getType());
$this->assertSame('integer', $tableSchema->getColumn('expire')?->getType());
$this->assertSame(SchemaInterface::TYPE_BINARY, $tableSchema->getColumn('data')?->getType());
$this->assertSame(SchemaInterface::TYPE_INTEGER, $tableSchema->getColumn('expire')?->getType());
}
}

0 comments on commit e04f4a0

Please sign in to comment.