Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-oyama committed Jan 8, 2025
1 parent 0321a1a commit f163125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Eloquent/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ public function test_insertAndSetId(): void
$test = new IdentityTest();
$test->name = 'test';
$test->saveOrFail();
$this->assertSame(4611686018427387904, $test->getKey());
$this->assertIsInt($test->getKey());
$this->assertTrue(1000000000000000000 > $test->getKey());
}
}
3 changes: 2 additions & 1 deletion tests/Query/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,8 @@ public function test_insertGetId(): void

$id = $conn->query()->from('IdentityTest')->insertGetId(['name' => 'foobar'], 'identityTestId');

$this->assertSame(4611686018427387904, $id);
$this->assertIsInt($id);
$this->assertTrue(1000000000000000000 > $id);
}

public function test_lock(): void
Expand Down

0 comments on commit f163125

Please sign in to comment.