Ticket381TestCase.php 673 Bytes
Newer Older
pookey's avatar
pookey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?php

class Doctrine_Ticket381_TestCase extends Doctrine_UnitTestCase {

    public function prepareData() 
    { }
    public function prepareTables() {
        $this->tables = array('Book');
        parent::prepareTables();
    }
    
    public function testTicket()
    {
        $obj = new Book();
        $obj->save();
        $obj->set('name', 'yes');
        $obj->save();
        $this->assertEqual($obj->get('name'), 'yes');
        $obj->save();
    }
    public function testTicket2()
    {
        $obj = new Book();
        $obj->set('name', 'yes2');
        $obj->save();
        $this->assertEqual($obj->get('name'), 'yes2');
        $obj->save();
    }
}