PartKeepr\PartBundle\Tests\PartTest::testCategoryRequired PHP Méthode

testCategoryRequired() public méthode

    public function testCategoryRequired()
    {
        $part = new Part();
        $part->setName('TEST');
        $part->setStorageLocation($this->fixtures->getReference('storagelocation.first'));
        $this->getContainer()->get('doctrine.orm.default_entity_manager')->persist($part);
        $this->getContainer()->get('doctrine.orm.default_entity_manager')->flush($part);
    }