Bootstrap\Test\TestCase\View\Helper\BootstrapPaginatorHelperTest::setUp PHP Метод

setUp() публичный Метод

setUp method
public setUp ( ) : void
Результат void
    public function setUp()
    {
        parent::setUp();
        $this->View = new View();
        $this->View->Html = new BootstrapHtmlHelper($this->View);
        $this->Paginator = new BootstrapPaginatorHelper($this->View);
        $this->Paginator->request = new Request();
        $this->Paginator->request->addParams(['paging' => ['Article' => ['page' => 1, 'current' => 9, 'count' => 62, 'prevPage' => false, 'nextPage' => true, 'pageCount' => 7, 'sort' => null, 'direction' => null, 'limit' => null]]]);
        Configure::write('Routing.prefixes', []);
        Router::reload();
        Router::connect('/:controller/:action/*');
        Router::connect('/:plugin/:controller/:action/*');
    }
BootstrapPaginatorHelperTest