public function testGet($method)
{
$this->_eventManager->on('Dispatcher.invokeController', ['priority' => 1000], function ($event) {
$this->_subscribeToEvents($this->_controller);
});
$this->{$method}('/blogs');
$this->assertContains('Page 1 of 2, showing 3 records out of 5 total', $this->_response->body());
$this->assertEvents(['beforePaginate', 'afterPaginate', 'beforeRender']);
$this->assertNotNull($this->viewVariable('viewVar'));
$this->assertNotNull($this->viewVariable('blogs'));
$this->assertNotNull($this->viewVariable('success'));
}