setCollection() public static method

PluginCollection을 지정한다.
public static setCollection ( PluginCollection $collection ) : void
$collection PluginCollection plugin collection
return void
 /**
  * @depends testConstruct
  *
  * @param \Xpressengine\Plugin\PluginEntity $entity
  */
 public function testGetDependencies($entity)
 {
     $collection = Mockery::mock('\\Xpressengine\\Plugin\\PluginCollection');
     $collection->shouldReceive('get')->withArgs(['ncenter'])->once()->andReturnNull();
     $entity->setCollection($collection);
     $this->assertEmpty($entity->getDependencies());
 }