You are here

private function RocketChatTestUnitTest::pathTest in Rocket.Chat 7

Same name and namespace in other branches
  1. 7.2 rocket_chat.test \RocketChatTestUnitTest::pathTest()
2 calls to RocketChatTestUnitTest::pathTest()
RocketChatTestUnitTest::pathFalseTest in ./rocket_chat.test
RocketChatTestUnitTest::pathTrueTest in ./rocket_chat.test

File

./rocket_chat.test, line 53

Class

RocketChatTestUnitTest
Although most core test cases are based on DrupalWebTestCase and are functional tests (exercising the web UI) we also have DrupalUnitTestCase, which executes much faster because a Drupal install does not have to be one. No environment is provided to a…

Code

private function pathTest(&$paths, &$path) {
  return RocketChat::checkIfTargetIsRocketChatPath($paths, $path);
}