Phactory\Sql\BlueprintTest::testCreate PHP Method

testCreate() public method

public testCreate ( )
    public function testCreate()
    {
        $name = 'testuser';
        //create Phactory\Sql\Blueprint object and a new Phactory_Row object
        $phactory_blueprint = new Blueprint('user', array('name' => $name), array(), $this->phactory);
        $phactory_row = $phactory_blueprint->create();
        //test $phactory_row is of type Phactory\Sql\Row and that object stored name correctly
        $this->assertInstanceOf('Phactory\\Sql\\Row', $phactory_row);
        $this->assertEquals($phactory_row->name, $name);
    }