public function testCanGetAndSetAuthor() { $user_mock = M::mock('Gittern\\Entity\\GitObject\\User'); $this->commit->setAuthor($user_mock); $this->assertEquals($user_mock, $this->commit->getAuthor()); }