fetch() public method

status, keyword, 소유한 component를 검색 필드로 사용할 수 있다.
public fetch ( array $searchField ) : PluginEntity[]
$searchField array 검색 정보
return PluginEntity[]
 /**
  * @depends testConstruct
  */
 public function testFetch(PluginCollection $collection)
 {
     $data = $collection->fetch(['component' => 'menu']);
     $this->assertCount(2, $data);
     $data = $collection->fetch(['status' => Plugin::STATUS_ACTIVATED]);
     $this->assertCount(2, $data);
     $data = $collection->fetch(['keyword' => 'sample2']);
     $this->assertCount(1, $data);
     $data = $collection->fetch(['keyword' => 'khongchi']);
     $this->assertCount(0, $data);
     $data = $collection->fetch(['keyword' => 'sample_author']);
     $this->assertCount(1, $data);
 }