Пример #1
0
 /**
  * test component generation
  *
  * @return void
  */
 public function testGetComponents()
 {
     $result = $this->Task->getComponents();
     $this->assertSame([], $result);
     $this->Task->params['components'] = '  , Security, ,  Csrf';
     $result = $this->Task->getComponents();
     $this->assertSame(['Security', 'Csrf'], $result);
 }