Skip to content

Commit

Permalink
test: update assertions for fromTable()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jan 26, 2024
1 parent ff79c8e commit 12b6d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/system/Database/Live/SQLite3/AlterTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ public function testFromTableFillsDetails(): void

$this->assertCount(5, $fields);
$this->assertArrayHasKey('id', $fields);
$this->assertNull($fields['id']['default']);
$this->assertArrayNotHasKey('default', $fields['id']);
$this->assertTrue($fields['id']['null']);
$this->assertSame('integer', strtolower($fields['id']['type']));

$this->assertArrayHasKey('name', $fields);
$this->assertNull($fields['name']['default']);
$this->assertArrayNotHasKey('default', $fields['name']);
$this->assertFalse($fields['name']['null']);
$this->assertSame('varchar', strtolower($fields['name']['type']));

$this->assertArrayHasKey('email', $fields);
$this->assertNull($fields['email']['default']);
$this->assertArrayNotHasKey('default', $fields['email']);
$this->assertTrue($fields['email']['null']);
$this->assertSame('varchar', strtolower($fields['email']['type']));

Expand Down

0 comments on commit 12b6d45

Please sign in to comment.