protected function CmfUnitTestCase::buildMock

28 calls to CmfUnitTestCase::buildMock()
ChainRouterTest::testReSortRouters in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
This test ensures that if a router is being added on the fly, the sorting is reset.
ChainRouterTest::testRouteCollection in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
ChainRouterTest::testSortRouters in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
Routers are supposed to be sorted only once. This test will check that by trying to get all routers several times.
ContentAwareGeneratorTest::setUp in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ContentAwareGeneratorTest.php
ContentAwareGeneratorTest::testGenerateDocumentMultilang in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ContentAwareGeneratorTest.php

... See full list

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Test/CmfUnitTestCase.php, line 8

Class

CmfUnitTestCase

Namespace

Symfony\Cmf\Component\Routing\Test

Code

protected function buildMock($class, array $methods = array()) {
  return $this
    ->getMockBuilder($class)
    ->disableOriginalConstructor()
    ->setMethods($methods)
    ->getMock();
}