/** * @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()); }