From 50b45000bbd7659626f5b38bbb8db6a336c87f49 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Thu, 19 Apr 2018 14:30:59 +1200 Subject: [PATCH] Make linter happy --- tests/unit/JSONDataFormatterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/JSONDataFormatterTest.php b/tests/unit/JSONDataFormatterTest.php index a4c178e..fe280b5 100644 --- a/tests/unit/JSONDataFormatterTest.php +++ b/tests/unit/JSONDataFormatterTest.php @@ -28,7 +28,7 @@ class JSONDataFormatterTest extends SapphireTest $parent = $this->objFromFixture(JSONDataFormatterTypeTestObject::class, 'parent'); $json = $formatter->convertDataObject($parent); $this->assertRegexp('/"ID":\d+/', $json, 'PK casted to integer'); - $this->assertRegexp('/"Created":"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}"/', $json, 'Datetime casted to ISO string'); + $this->assertRegexp('/"Created":"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}"/', $json, 'Datetime casted to string'); $this->assertContains('"Name":"Parent"', $json, 'String casted to string'); $this->assertContains('"Active":true', $json, 'Boolean casted to boolean'); $this->assertContains('"Sort":17', $json, 'Integer casted to integer');