You are here

private function SerialTestCase::visit in Serial Field 7

Visit path and assert response code.

Parameters

string $path: Path to visit.

int $code: Expected response code.

1 call to SerialTestCase::visit()
SerialTestCase::testSerial in tests/serial.test
Create N nodes and attach N comments for the last.

File

tests/serial.test, line 108
Test Serial functionality.

Class

SerialTestCase
Class SerialTestCase.

Code

private function visit($path, $code = 200) {
  $this
    ->drupalGet($path);
  $this
    ->assertResponse($code);
}