From e5f7a3d4fe7a7854fa5d5327167f0d80cb0e8d5d Mon Sep 17 00:00:00 2001 From: Aleksei Zarubin <12220926+alexzarbn@users.noreply.github.com> Date: Sat, 7 Jan 2023 15:44:59 +0100 Subject: [PATCH] test: disable batch operations on one-to-one relation resources --- tests/Unit/OrionTest.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/tests/Unit/OrionTest.php b/tests/Unit/OrionTest.php index ffd0ec8d..67cfb383 100644 --- a/tests/Unit/OrionTest.php +++ b/tests/Unit/OrionTest.php @@ -106,10 +106,6 @@ function () { $this->assertRouteRegistered('api.projects.meta.update', ['PUT', 'PATCH'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@update'); $this->assertRouteRegistered('api.projects.meta.destroy', ['DELETE'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@destroy'); - $this->assertRouteRegistered('api.projects.meta.batchStore', ['POST'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchStore'); - $this->assertRouteRegistered('api.projects.meta.batchUpdate', ['PATCH'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchUpdate'); - $this->assertRouteRegistered('api.projects.meta.batchDestroy', ['DELETE'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchDestroy'); - $this->assertRouteNotRegistered('api.projects.meta.index'); $this->assertRouteNotRegistered('api.projects.meta.search'); $this->assertRouteNotRegistered('api.projects.meta.restore'); @@ -132,11 +128,6 @@ function () { $this->assertRouteRegistered('api.projects.meta.destroy', ['DELETE'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@destroy'); $this->assertRouteRegistered('api.projects.meta.restore', ['POST'], 'api/projects/{project}/meta/{metum?}/restore', DummyController::class.'@restore'); - $this->assertRouteRegistered('api.projects.meta.batchStore', ['POST'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchStore'); - $this->assertRouteRegistered('api.projects.meta.batchUpdate', ['PATCH'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchUpdate'); - $this->assertRouteRegistered('api.projects.meta.batchDestroy', ['DELETE'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchDestroy'); - $this->assertRouteRegistered('api.projects.meta.batchRestore', ['POST'], 'api/projects/{project}/meta/batch/restore', DummyController::class.'@batchRestore'); - $this->assertRouteNotRegistered('api.projects.meta.index'); $this->assertRouteNotRegistered('api.projects.meta.search'); } @@ -322,10 +313,6 @@ function () { $this->assertRouteRegistered('api.projects.meta.update', ['PUT', 'PATCH'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@update'); $this->assertRouteRegistered('api.projects.meta.destroy', ['DELETE'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@destroy'); - $this->assertRouteRegistered('api.projects.meta.batchStore', ['POST'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchStore'); - $this->assertRouteRegistered('api.projects.meta.batchUpdate', ['PATCH'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchUpdate'); - $this->assertRouteRegistered('api.projects.meta.batchDestroy', ['DELETE'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchDestroy'); - $this->assertRouteNotRegistered('api.projects.meta.index'); $this->assertRouteNotRegistered('api.projects.meta.search'); $this->assertRouteNotRegistered('api.projects.meta.restore'); @@ -348,11 +335,6 @@ function () { $this->assertRouteRegistered('api.projects.meta.destroy', ['DELETE'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@destroy'); $this->assertRouteRegistered('api.projects.meta.restore', ['POST'], 'api/projects/{project}/meta/{metum?}/restore', DummyController::class.'@restore'); - $this->assertRouteRegistered('api.projects.meta.batchStore', ['POST'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchStore'); - $this->assertRouteRegistered('api.projects.meta.batchUpdate', ['PATCH'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchUpdate'); - $this->assertRouteRegistered('api.projects.meta.batchDestroy', ['DELETE'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchDestroy'); - $this->assertRouteRegistered('api.projects.meta.batchRestore', ['POST'], 'api/projects/{project}/meta/batch/restore', DummyController::class.'@batchRestore'); - $this->assertRouteNotRegistered('api.projects.meta.index'); $this->assertRouteNotRegistered('api.projects.meta.search'); } @@ -427,10 +409,6 @@ function () { $this->assertRouteRegistered('api.projects.meta.update', ['PUT', 'PATCH'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@update'); $this->assertRouteRegistered('api.projects.meta.destroy', ['DELETE'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@destroy'); - $this->assertRouteRegistered('api.projects.meta.batchStore', ['POST'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchStore'); - $this->assertRouteRegistered('api.projects.meta.batchUpdate', ['PATCH'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchUpdate'); - $this->assertRouteRegistered('api.projects.meta.batchDestroy', ['DELETE'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchDestroy'); - $this->assertRouteNotRegistered('api.projects.meta.index'); $this->assertRouteNotRegistered('api.projects.meta.search'); $this->assertRouteNotRegistered('api.projects.meta.restore'); @@ -453,11 +431,6 @@ function () { $this->assertRouteRegistered('api.projects.meta.destroy', ['DELETE'], 'api/projects/{project}/meta/{metum?}', DummyController::class.'@destroy'); $this->assertRouteRegistered('api.projects.meta.restore', ['POST'], 'api/projects/{project}/meta/{metum?}/restore', DummyController::class.'@restore'); - $this->assertRouteRegistered('api.projects.meta.batchStore', ['POST'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchStore'); - $this->assertRouteRegistered('api.projects.meta.batchUpdate', ['PATCH'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchUpdate'); - $this->assertRouteRegistered('api.projects.meta.batchDestroy', ['DELETE'], 'api/projects/{project}/meta/batch', DummyController::class.'@batchDestroy'); - $this->assertRouteRegistered('api.projects.meta.batchRestore', ['POST'], 'api/projects/{project}/meta/batch/restore', DummyController::class.'@batchRestore'); - $this->assertRouteNotRegistered('api.projects.meta.index'); $this->assertRouteNotRegistered('api.projects.meta.search'); }