/**
  * @covers Ginger\Core\Repository\AbstractCrudRepository::listAll
  */
 public function testListAll()
 {
     $resourceData = new Resource\ResourceData();
     $resourceData->setData(array('name' => 'DataTransfer'));
     $resourceId1 = $this->object->create($resourceData);
     $resourceData = new Resource\ResourceData();
     $resourceData->setData(array('name' => 'FileUpload'));
     $resourceId2 = $this->object->create($resourceData);
     $resources = $this->object->listAll();
     $resourceData1 = $resources[0];
     $this->assertInstanceOf('GingerCore\\Repository\\Resource\\ResourceData', $resourceData1);
     $this->assertEquals($resourceId1->getValue(), $resourceData1->getResourceId()->getValue());
     $this->assertEquals(array('name' => 'DataTransfer'), $resourceData1->getData());
     $resourceData2 = $resources[1];
     $this->assertInstanceOf('GingerCore\\Repository\\Resource\\ResourceData', $resourceData2);
     $this->assertEquals($resourceId2->getValue(), $resourceData2->getResourceId()->getValue());
     $this->assertEquals(array('name' => 'FileUpload'), $resourceData2->getData());
 }
 public function __construct(CrudRepositoryAdapterInterface $adapter)
 {
     parent::__construct(new WorkflowType(), $adapter);
 }