Sulu\Bundle\MediaBundle\Entity\CollectionType::getId PHP Method

getId() public method

Get id.
public getId ( ) : integer
return integer
    public function getId()
    {
        return $this->id;
    }

Usage Example

Ejemplo n.º 1
0
 public function testPutSystemCollection()
 {
     $collection = $this->createCollection($this->collectionType2, ['en' => 'Test'], null, 'system_collections');
     $this->em->flush();
     $client = $this->createAuthenticatedClient();
     $client->request('PUT', '/api/collections/' . $collection->getId(), ['locale' => 'en-gb', 'type' => ['id' => $this->collectionType1->getId()], 'title' => 'Test Collection 2', 'description' => 'This Description 2 is only for testing']);
     $this->assertEquals(403, $client->getResponse()->getStatusCode());
 }