tests/unit/Subjects/ExportableTraitTest.php
/**
     * Test the getArtefactsByTypeAndEntityId() method with invalid type or entity ID.
     *
     * @return void
     */
Test the getArtefactsByTypeAndEntityId() method with invalid type or entity ID.
@return void
Test the getArtefactsByTypeAndEntityId () method with invalid type or entity ID . @return void
public function testGetArtefactsByTypeAndEntityIdWithException()
    {
        $this->expectException(\Exception::class);
        $this->expectExceptionMessage("Cant't load artefacts for type unknown_type and entity ID 10");
        $this->exportableTrait->getArtefactsByTypeAndEntityId('unknown_type', 10);
    }
public function testGetArtefactsByTypeAndEntityIdWithException ( ) { $ this -> expectException ( \ Exception :: class ) ; $ this -> expectExceptionMessage ( " Cant't load artefacts for type unknown_type and entity ID 10 " ) ; $ this -> exportableTrait -> getArtefactsByTypeAndEntityId ( 'unknown_type' , 10 ) ; }
Test the getArtefactsByTypeAndEntityId() method with invalid type or entity ID.
Test the getArtefactsByTypeAndEntityId () method with invalid type or entity ID .