diff --git a/lib/Controller/NoteApiController.php b/lib/Controller/TicketApiController.php similarity index 97% rename from lib/Controller/NoteApiController.php rename to lib/Controller/TicketApiController.php index 1667bba..48c24bb 100644 --- a/lib/Controller/NoteApiController.php +++ b/lib/Controller/TicketApiController.php @@ -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; diff --git a/lib/Controller/NoteController.php b/lib/Controller/TicketController.php similarity index 97% rename from lib/Controller/NoteController.php rename to lib/Controller/TicketController.php index 4c37699..b7a9066 100644 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/TicketController.php @@ -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; diff --git a/tests/Integration/NoteIntegrationTest.php b/tests/Integration/NoteIntegrationTest.php index 6c71c42..69a6f8b 100644 --- a/tests/Integration/NoteIntegrationTest.php +++ b/tests/Integration/NoteIntegrationTest.php @@ -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); } diff --git a/tests/Unit/Controller/NoteApiControllerTest.php b/tests/Unit/Controller/NoteApiControllerTest.php index 4c13eb6..83318ce 100644 --- a/tests/Unit/Controller/NoteApiControllerTest.php +++ b/tests/Unit/Controller/NoteApiControllerTest.php @@ -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); } } diff --git a/tests/Unit/Controller/NoteControllerTest.php b/tests/Unit/Controller/NoteControllerTest.php index e96d660..aa0603a 100644 --- a/tests/Unit/Controller/NoteControllerTest.php +++ b/tests/Unit/Controller/NoteControllerTest.php @@ -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() {