. * */ namespace OCA\Passman\Tests\BackgroundJob; use PHPUnit_Framework_TestCase; use OCA\Passman\BackgroundJob\ExpireCredentials; use OCP\IConfig; /** * Class ExpireActivitiesTest * * @group DB * @package OCA\Passman\Tests\BackgroundJob * @covers \OCA\Passman\BackgroundJob\ExpireCredentials */ class ExpireCredentialsTest extends PHPUnit_Framework_TestCase { public function testRun() { $backgroundJob = new ExpireCredentials( $this->getMockBuilder(IConfig::class)->getMock() ); $jobList = $this->getMockBuilder('\OCP\BackgroundJob\IJobList')->getMock(); /** @var \OC\BackgroundJob\JobList $jobList */ $backgroundJob->execute($jobList); $this->assertTrue(true); } }