Skip to content

Commit

Permalink
MNT Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 19, 2024
1 parent 4a67d04 commit d49c216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Schema/AbstractTypeRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function provideRebuildOnMissing(): array

private function getInstance()
{
$registry = new Class extends AbstractTypeRegistry
$registry = new class extends AbstractTypeRegistry
{
protected static function getSourceDirectory(): string
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Schema/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ public function testDBFieldArgs()
$node = $result['data']['readOneDataObjectFake'] ?? null;
$this->assertEquals('This is a varchar field', $node['myField']);
$this->assertEquals('Saturday', $node['date1']);
$this->assertEquals('2/29/20, 5:00 PM', $node['date2']);
$this->assertMatchesRegularExpression('#2/29/20,\h5:00\hPM#iu', $node['date2']);
$this->assertEquals('5:00:00 PM', $node['date3']);
$this->assertEquals('2020', $node['date4']);
$this->assertEquals('This is a really long text field. It has a few sentences.', $node['myText']);
Expand Down

0 comments on commit d49c216

Please sign in to comment.