rename note to ticket

This commit is contained in:
Finn 2021-08-22 17:02:03 +02:00
parent 2252a49467
commit 5f45d0a3c8
5 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@ use OCP\AppFramework\ApiController;
use OCP\AppFramework\Http\DataResponse;
use OCP\IRequest;
class NoteApiController extends ApiController {
class TicketApiController extends ApiController {
/** @var NoteService */
private $service;

View file

@ -8,7 +8,7 @@ use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\DataResponse;
use OCP\IRequest;
class NoteController extends Controller {
class TicketController extends Controller {
/** @var NoteService */
private $service;

View file

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
use OCA\UPschooling\Db\Note;
use OCA\UPschooling\Db\NoteMapper;
use OCA\UPschooling\Controller\NoteController;
use OCA\UPschooling\Controller\TicketController;
class NoteIntegrationTest extends TestCase {
private $controller;
@ -30,7 +30,7 @@ class NoteIntegrationTest extends TestCase {
return $this->createMock(IRequest::class);
});
$this->controller = $container->query(NoteController::class);
$this->controller = $container->query(TicketController::class);
$this->mapper = $container->query(NoteMapper::class);
}

View file

@ -2,11 +2,11 @@
namespace OCA\UPschooling\Tests\Unit\Controller;
use OCA\UPschooling\Controller\NoteApiController;
use OCA\UPschooling\Controller\TicketApiController;
class NoteApiControllerTest extends NoteControllerTest {
public function setUp(): void {
parent::setUp();
$this->controller = new NoteApiController($this->request, $this->service, $this->userId);
$this->controller = new TicketApiController($this->request, $this->service, $this->userId);
}
}

View file

@ -9,7 +9,7 @@ use OCP\IRequest;
use OCA\UPschooling\Service\NoteNotFound;
use OCA\UPschooling\Service\NoteService;
use OCA\UPschooling\Controller\NoteController;
use OCA\UPschooling\Controller\TicketController;
class NoteControllerTest extends TestCase {
protected $controller;
@ -22,7 +22,7 @@ class NoteControllerTest extends TestCase {
$this->service = $this->getMockBuilder(NoteService::class)
->disableOriginalConstructor()
->getMock();
$this->controller = new NoteController($this->request, $this->service, $this->userId);
$this->controller = new TicketController($this->request, $this->service, $this->userId);
}
public function testUpdate() {