public function testSaveAndLoad() { $action = new Action(); $action->setName('Test'); $action->setDescription('Description'); $action->save(); $id = $action->getId(); $this->assertNotEmpty($id); $action = new Action($id); $this->assertEquals('Test', $action->getName()); $this->assertEquals('Description', $action->getDescription()); }