Used more specific unit test assertions in framework tests

This commit is contained in:
Alexander Makarov
2017-03-14 09:45:31 +03:00
committed by GitHub
parent 6397791513
commit 3f8e8a89eb
49 changed files with 519 additions and 487 deletions

View File

@ -124,15 +124,15 @@ class SchemaTest extends \yiiunit\framework\db\SchemaTest
$schema = $this->getConnection()->schema;
$table = $schema->getTableSchema('bool_values');
$this->assertSame(true, $table->getColumn('default_true')->defaultValue);
$this->assertSame(false, $table->getColumn('default_false')->defaultValue);
$this->assertTrue($table->getColumn('default_true')->defaultValue);
$this->assertFalse($table->getColumn('default_false')->defaultValue);
}
public function testFindSchemaNames()
{
$schema = $this->getConnection()->schema;
$this->assertEquals(3, count($schema->getSchemaNames()));
$this->assertCount(3, $schema->getSchemaNames());
}
public function bigintValueProvider()