lithium\tests\cases\data\source\http\adapter\CouchDbTest::testCreateWithId PHP Метод

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

public testCreateWithId ( )
    public function testCreateWithId()
    {
        $couchdb = new CouchDb($this->_testConfig);
        $this->_query->data(array('id' => 12345, 'name' => 'Acme Inc.'));
        $result = $couchdb->create($this->_query);
        $this->assertTrue($result);
        $expected = '/lithium-test/12345';
        $result = $couchdb->last->request->path;
        $this->assertEqual($expected, $result);
        $expected = array();
        $result = $couchdb->last->request->query;
        $this->assertEqual($expected, $result);
    }