Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Fix unit test #619

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
GuySartorelli marked this conversation as resolved.
Show resolved Hide resolved
{
protected static function getSourceDirectory(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Schema/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,8 +1434,8 @@ 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->assertEquals('5:00:00 PM', $node['date3']);
$this->assertMatchesRegularExpression('#2/29/20,\h5:00\hPM#iu', $node['date2']);
$this->assertMatchesRegularExpression('#5:00:00\hPM#iu', $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
Loading