public function testGetNextChangeLogEntry() { $app = $this->getApp(); $app['config']->set('general/changelog/enabled', true); $storage = new Storage($app); // To generate an extra changelog we fetch and save a content item // For now we need to mock the request object. $app['request'] = Request::create('/'); $content = $storage->getContent('pages/1'); $this->assertInstanceOf('\\Bolt\\Legacy\\Content', $content); $content->setValues(['status' => 'draft', 'ownerid' => 99]); $storage->saveContent($content, 'Test Suite Update'); $content->setValues(['status' => 'published', 'ownerid' => 1]); $storage->saveContent($content, 'Test Suite Update'); $log = $this->getLogChangeRepository()->getChangeLogEntry('pages', 1, 1, '>'); $this->assertAttributeEquals(1, 'contentid', $log); }