. * */ namespace OCA\Passman\Controller; use OCP\AppFramework\Http\JSONResponse; use PHPUnit_Framework_TestCase; /** * Class TranslationControllerTest * * @package OCA\Passman\Controller * @coversDefaultClass \OCA\Passman\Controller\TranslationController */ class TranslationControllerTest extends PHPUnit_Framework_TestCase { private $controller; public function setUp() { $request = $this->getMockBuilder('OCP\IRequest')->getMock(); $IL10N = $this->getMockBuilder('OCP\IL10N')->getMock(); $this->controller = new TranslationController( 'passman', $request, $IL10N ); } /** * @covers ::getLanguageStrings */ public function testGetLanguageStrings() { $result = $this->controller->getLanguageStrings(null); $this->assertTrue($result instanceof JSONResponse); } }