Phalcon\Test\Unit\Mvc\CollectionTest::testShouldGetTrueWhenSaveDocument PHP Method

testShouldGetTrueWhenSaveDocument() public method

Tests Collection::save
Since: 2016-03-13
Author: Serghei Iakovlev ([email protected])
    public function testShouldGetTrueWhenSaveDocument()
    {
        $this->specify("Collection::save does not return expected result", function () {
            $this->clearCollection();
            expect($this->createDocument(['artist' => 'Radiohead', 'name' => 'Lotus Flower']))->true();
        });
    }