You are here

private function RocketChatTestUnitTest::pathTrueTest in Rocket.Chat 7

Same name and namespace in other branches
  1. 7.2 rocket_chat.test \RocketChatTestUnitTest::pathTrueTest()
1 call to RocketChatTestUnitTest::pathTrueTest()
RocketChatTestUnitTest::testRocketChatUnitTestExampleFunction in ./rocket_chat.test
Test RocketChat::checkIfTargetIsRocketChatPath().

File

./rocket_chat.test, line 57

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 pathTrueTest(&$paths, $path) {
  return $this
    ->assertTrue($this
    ->pathTest($paths, $path), "Display Widget on [" . $path . "] ==> Yes", 'RocketChat');
}