function testNotebookDBInsert() { $n = new Notebook(['notebook_id' => 50, 'user_id' => 101, 'name' => 'testInsertNotebook', 'notes' => 'this is a test notebook', 'DB' => $this->DB]); $n->updateDb(); $n2 = Notebook::getOneFromDb(['notebook_id' => 50], $this->DB); $this->assertTrue($n2->matchesDb); $this->assertEqual($n2->name, 'testInsertNotebook'); $this->assertEqual($n2->notes, 'this is a test notebook'); }