From f1d64571dd9bdecc37846f4928b7e7143445f89b Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Fri, 25 Sep 2020 11:42:40 +1000 Subject: [PATCH] [#1] Fixed linting issues. --- tests/src/Functional/JsonapiViewsResourceTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/src/Functional/JsonapiViewsResourceTest.php b/tests/src/Functional/JsonapiViewsResourceTest.php index 70430b5..36d6ac9 100644 --- a/tests/src/Functional/JsonapiViewsResourceTest.php +++ b/tests/src/Functional/JsonapiViewsResourceTest.php @@ -185,10 +185,12 @@ public function testContentPageExposedFilters() { $this->assertIsArray($response_document['data']); $this->assertArrayNotHasKey('errors', $response_document); // @TODO - Fix tests and/or Exposed filtes. + // phpcs:disable // $this->assertCount(9, $response_document['data']); // $this->assertSame(array_reverse(array_keys($nodes['all'])), array_map(static function (array $data) { // return $data['id']; // }, $response_document['data'])); + // phpcs:enable // Get published nodes. $url->setOption('query', [ @@ -204,9 +206,11 @@ public function testContentPageExposedFilters() { $this->assertArrayNotHasKey('errors', $response_document); $this->assertCount(3, $response_document['data']); // @TODO - Fix tests and/or Exposed filtes. + // phpcs:disable // $this->assertSame(array_reverse(array_keys($nodes['published'])), array_map(static function (array $data) { // return $data['id']; // }, $response_document['data'])); + // phpcs:enable // Get unpublished nodes. $url->setOption('query', [ @@ -219,10 +223,12 @@ public function testContentPageExposedFilters() { $this->assertIsArray($response_document['data']); $this->assertArrayNotHasKey('errors', $response_document); // @TODO - Fix tests and/or Exposed filtes. + // phpcs:disable // $this->assertCount(7, $response_document['data']); // $this->assertSame(array_reverse(array_keys($nodes['unpublished'])), array_map(static function (array $data) { // return $data['id']; // }, $response_document['data'])); + // phpcs:enable } /**