Tests that a single record with a manually specified primary key can be created, persisted to an arbitrary data store, re-read and updated.

Returns

void

Source

						public function testCreate() {
		$this->assertIdentical(0, Companies::count());

		$new = Companies::create(array('name' => 'Acme, Inc.', 'active' => true));
		$expected = array('name' => 'Acme, Inc.', 'active' => true);
		$result = $new->data();
		$this->assertEqual($expected, $result);

		$this->assertEqual(
			array(false, true, true),
			array($new->exists(), $new->save(), $new->exists())
		);
		$this->assertIdentical(1, Companies::count());
	}