Sulu\Bundle\MediaBundle\Behat\MediaContext::theMediaCollectionShouldNotExist PHP Method

theMediaCollectionShouldNotExist() public method

    public function theMediaCollectionShouldNotExist($name)
    {
        $meta = $this->getEntityManager()->getRepository('Sulu\\Bundle\\MediaBundle\\Entity\\CollectionMeta')->findOneByTitle($name);
        if ($meta) {
            throw new \InvalidArgumentException(sprintf('Collection "%s" should not exist'));
        }
    }