Skip to content

Commit

Permalink
[#1] Fixed linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 25, 2020
1 parent eddee79 commit f1d6457
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/Functional/JsonapiViewsResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', [
Expand All @@ -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', [
Expand All @@ -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
}

/**
Expand Down

0 comments on commit f1d6457

Please sign in to comment.