PartKeepr\PartBundle\Tests\PartTest::testStorageLocationRequired PHP Method

testStorageLocationRequired() public method

    public function testStorageLocationRequired()
    {
        $part = new Part();
        $part->setName('TEST');
        $part->setCategory($this->getContainer()->get('partkeepr.part.category_service')->getRootNode());
        $this->getContainer()->get('doctrine.orm.default_entity_manager')->persist($part);
        $this->getContainer()->get('doctrine.orm.default_entity_manager')->flush($part);
    }