Gc\View\CollectionTest::testDelete PHP Méthode

testDelete() public méthode

Test
public testDelete ( ) : void
Résultat void
    public function testDelete()
    {
        $model = Model::fromIdentifier('identifier-collection-test');
        $documentType = DocumentTypeModel::fromArray(array('name' => 'Document type name', 'description' => 'Document type description', 'defaultview_id' => $model->getId(), 'icon_id' => 1, 'user_id' => 1));
        $documentType->save();
        $this->object->init($documentType->getId());
        $this->object->addElement($model);
        $this->object->save();
        $this->assertTrue($this->object->delete());
        $documentType->delete();
    }