From cac855b934a7dbe0411b91a30bbacd9ade372043 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:37:53 +1300 Subject: [PATCH] MNT Fix test that didn't account for i18n spaces (#611) --- tests/Schema/IntegrationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Schema/IntegrationTest.php b/tests/Schema/IntegrationTest.php index 8739567d..9930bdf0 100644 --- a/tests/Schema/IntegrationTest.php +++ b/tests/Schema/IntegrationTest.php @@ -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#u', $node['date2']); + $this->assertMatchesRegularExpression('#5:00:00\hPM#u', $node['date3']); $this->assertEquals('2020', $node['date4']); $this->assertEquals('This is a really long text field. It has a few sentences.', $node['myText']); }