feat: add nxtcloud generated code
This commit is contained in:
commit
34b7d0b9cb
26 changed files with 1200 additions and 0 deletions
19
tests/unit/Controller/ApiTest.php
Normal file
19
tests/unit/Controller/ApiTest.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Controller;
|
||||
|
||||
use OCA\Nsnm\AppInfo\Application;
|
||||
use OCA\Nsnm\Controller\ApiController;
|
||||
use OCP\IRequest;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ApiTest extends TestCase {
|
||||
public function testIndex() {
|
||||
$request = $this->createMock(IRequest::class);
|
||||
$controller = new ApiController(Application::APP_ID, $request);
|
||||
|
||||
$this->assertEquals($controller->index()->getData()['message'], 'Hello world!');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue