rename note to ticket
This commit is contained in:
parent
2252a49467
commit
5f45d0a3c8
|
@ -8,7 +8,7 @@ use OCP\AppFramework\ApiController;
|
||||||
use OCP\AppFramework\Http\DataResponse;
|
use OCP\AppFramework\Http\DataResponse;
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
|
|
||||||
class NoteApiController extends ApiController {
|
class TicketApiController extends ApiController {
|
||||||
/** @var NoteService */
|
/** @var NoteService */
|
||||||
private $service;
|
private $service;
|
||||||
|
|
|
@ -8,7 +8,7 @@ use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\DataResponse;
|
use OCP\AppFramework\Http\DataResponse;
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
|
|
||||||
class NoteController extends Controller {
|
class TicketController extends Controller {
|
||||||
/** @var NoteService */
|
/** @var NoteService */
|
||||||
private $service;
|
private $service;
|
||||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
use OCA\UPschooling\Db\Note;
|
use OCA\UPschooling\Db\Note;
|
||||||
use OCA\UPschooling\Db\NoteMapper;
|
use OCA\UPschooling\Db\NoteMapper;
|
||||||
use OCA\UPschooling\Controller\NoteController;
|
use OCA\UPschooling\Controller\TicketController;
|
||||||
|
|
||||||
class NoteIntegrationTest extends TestCase {
|
class NoteIntegrationTest extends TestCase {
|
||||||
private $controller;
|
private $controller;
|
||||||
|
@ -30,7 +30,7 @@ class NoteIntegrationTest extends TestCase {
|
||||||
return $this->createMock(IRequest::class);
|
return $this->createMock(IRequest::class);
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->controller = $container->query(NoteController::class);
|
$this->controller = $container->query(TicketController::class);
|
||||||
$this->mapper = $container->query(NoteMapper::class);
|
$this->mapper = $container->query(NoteMapper::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
namespace OCA\UPschooling\Tests\Unit\Controller;
|
namespace OCA\UPschooling\Tests\Unit\Controller;
|
||||||
|
|
||||||
use OCA\UPschooling\Controller\NoteApiController;
|
use OCA\UPschooling\Controller\TicketApiController;
|
||||||
|
|
||||||
class NoteApiControllerTest extends NoteControllerTest {
|
class NoteApiControllerTest extends NoteControllerTest {
|
||||||
public function setUp(): void {
|
public function setUp(): void {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->controller = new NoteApiController($this->request, $this->service, $this->userId);
|
$this->controller = new TicketApiController($this->request, $this->service, $this->userId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ use OCP\IRequest;
|
||||||
|
|
||||||
use OCA\UPschooling\Service\NoteNotFound;
|
use OCA\UPschooling\Service\NoteNotFound;
|
||||||
use OCA\UPschooling\Service\NoteService;
|
use OCA\UPschooling\Service\NoteService;
|
||||||
use OCA\UPschooling\Controller\NoteController;
|
use OCA\UPschooling\Controller\TicketController;
|
||||||
|
|
||||||
class NoteControllerTest extends TestCase {
|
class NoteControllerTest extends TestCase {
|
||||||
protected $controller;
|
protected $controller;
|
||||||
|
@ -22,7 +22,7 @@ class NoteControllerTest extends TestCase {
|
||||||
$this->service = $this->getMockBuilder(NoteService::class)
|
$this->service = $this->getMockBuilder(NoteService::class)
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$this->controller = new NoteController($this->request, $this->service, $this->userId);
|
$this->controller = new TicketController($this->request, $this->service, $this->userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testUpdate() {
|
public function testUpdate() {
|
||||||
|
|
Loading…
Reference in a new issue