/**
  * Test prg method
  *
  * @return void
  */
 public function testPrgGet()
 {
     $_SERVER['REQUEST_METHOD'] = 'GET';
     $this->Controller->request = $request = new Request(['webroot' => '/dir/', 'params' => ['action' => 'index', 'pass' => []], 'query' => ['title' => 'Third']]);
     $this->Controller = new ArticlesController($request, new Response());
     $this->Controller->index();
     $this->assertEquals(count($this->Controller->viewVars['articles']), 1);
     $article = $this->Controller->viewVars['articles']->toArray()[0];
     $this->assertEquals($article->id, 3);
 }