RedUNIT\Sqlite\Writer::testZeroIssue PHP Метод

testZeroIssue() публичный Метод

(FALSE should be stored as 0 not as '')
public testZeroIssue ( ) : void
Результат void
    public function testZeroIssue()
    {
        testpack("Zero issue");
        $toolbox = R::getToolBox();
        $redbean = $toolbox->getRedBean();
        $bean = $redbean->dispense("zero");
        $bean->zero = FALSE;
        $bean->title = "bla";
        $redbean->store($bean);
        asrt(count($redbean->find("zero", array(), " zero = 0 ")), 1);
        testpack("Test ANSI92 issue in clearrelations");
        $redbean = $toolbox->getRedBean();
        $a = new AssociationManager($toolbox);
        $book = $redbean->dispense("book");
        $author1 = $redbean->dispense("author");
        $author2 = $redbean->dispense("author");
        $book->title = "My First Post";
        $author1->name = "Derek";
        $author2->name = "Whoever";
        set1toNAssoc($a, $book, $author1);
        set1toNAssoc($a, $book, $author2);
        pass();
    }