mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-23 21:27:44 +03:00
Renamed EditTagsAction to EditShortcodeTagsAction
This commit is contained in:
parent
e0f18f8d1f
commit
486ea10c3c
4 changed files with 8 additions and 8 deletions
|
@ -18,7 +18,7 @@ return [
|
|||
Action\ResolveUrlAction::class => AnnotatedFactory::class,
|
||||
Action\GetVisitsAction::class => AnnotatedFactory::class,
|
||||
Action\ListShortcodesAction::class => AnnotatedFactory::class,
|
||||
Action\EditTagsAction::class => AnnotatedFactory::class,
|
||||
Action\EditShortcodeTagsAction::class => AnnotatedFactory::class,
|
||||
|
||||
Middleware\BodyParserMiddleware::class => AnnotatedFactory::class,
|
||||
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
||||
|
|
|
@ -37,7 +37,7 @@ return [
|
|||
[
|
||||
'name' => 'rest-edit-tags',
|
||||
'path' => '/rest/v{version:1}/short-codes/{shortCode}/tags',
|
||||
'middleware' => Action\EditTagsAction::class,
|
||||
'middleware' => Action\EditShortcodeTagsAction::class,
|
||||
'allowed_methods' => ['PUT'],
|
||||
],
|
||||
],
|
||||
|
|
|
@ -13,7 +13,7 @@ use Shlinkio\Shlink\Rest\Util\RestUtils;
|
|||
use Zend\Diactoros\Response\JsonResponse;
|
||||
use Zend\I18n\Translator\TranslatorInterface;
|
||||
|
||||
class EditTagsAction extends AbstractRestAction
|
||||
class EditShortcodeTagsAction extends AbstractRestAction
|
||||
{
|
||||
/**
|
||||
* @var ShortUrlServiceInterface
|
||||
|
@ -25,7 +25,7 @@ class EditTagsAction extends AbstractRestAction
|
|||
private $translator;
|
||||
|
||||
/**
|
||||
* EditTagsAction constructor.
|
||||
* EditShortcodeTagsAction constructor.
|
||||
* @param ShortUrlServiceInterface $shortUrlService
|
||||
* @param TranslatorInterface $translator
|
||||
* @param LoggerInterface|null $logger
|
|
@ -6,15 +6,15 @@ use Prophecy\Prophecy\ObjectProphecy;
|
|||
use Shlinkio\Shlink\Core\Entity\ShortUrl;
|
||||
use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException;
|
||||
use Shlinkio\Shlink\Core\Service\ShortUrlService;
|
||||
use Shlinkio\Shlink\Rest\Action\EditTagsAction;
|
||||
use Shlinkio\Shlink\Rest\Action\EditShortcodeTagsAction;
|
||||
use ShlinkioTest\Shlink\Common\Util\TestUtils;
|
||||
use Zend\Diactoros\ServerRequestFactory;
|
||||
use Zend\I18n\Translator\Translator;
|
||||
|
||||
class EditTagsActionTest extends TestCase
|
||||
class EditShortcodeTagsActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var EditTagsAction
|
||||
* @var EditShortcodeTagsAction
|
||||
*/
|
||||
protected $action;
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ class EditTagsActionTest extends TestCase
|
|||
public function setUp()
|
||||
{
|
||||
$this->shortUrlService = $this->prophesize(ShortUrlService::class);
|
||||
$this->action = new EditTagsAction($this->shortUrlService->reveal(), Translator::factory([]));
|
||||
$this->action = new EditShortcodeTagsAction($this->shortUrlService->reveal(), Translator::factory([]));
|
||||
}
|
||||
|
||||
/**
|
Loading…
Reference in a new issue