Loading tests/src/Functional/LupusDecoupledApiResponseTest.php +16 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,22 @@ class LupusDecoupledApiResponseTest extends BrowserTestBase { $this->nodePath = 'ce-api/node/' . $this->node->id(); } /** * Tests if created node is accessible. */ public function testExistingPageResponse() { $this->drupalGet('node/' . $this->node->id()); $this->assertSession()->statusCodeEquals(200); } /** * Tests un-existing page access. */ public function test404Page() { $this->drupalGet('i-dont-exist'); $this->assertSession()->statusCodeEquals(404); } /** * Tests if created node is accessible at api endpoint. */ Loading Loading
tests/src/Functional/LupusDecoupledApiResponseTest.php +16 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,22 @@ class LupusDecoupledApiResponseTest extends BrowserTestBase { $this->nodePath = 'ce-api/node/' . $this->node->id(); } /** * Tests if created node is accessible. */ public function testExistingPageResponse() { $this->drupalGet('node/' . $this->node->id()); $this->assertSession()->statusCodeEquals(200); } /** * Tests un-existing page access. */ public function test404Page() { $this->drupalGet('i-dont-exist'); $this->assertSession()->statusCodeEquals(404); } /** * Tests if created node is accessible at api endpoint. */ Loading