mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-17 15:59:56 +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\ResolveUrlAction::class => AnnotatedFactory::class,
|
||||||
Action\GetVisitsAction::class => AnnotatedFactory::class,
|
Action\GetVisitsAction::class => AnnotatedFactory::class,
|
||||||
Action\ListShortcodesAction::class => AnnotatedFactory::class,
|
Action\ListShortcodesAction::class => AnnotatedFactory::class,
|
||||||
Action\EditTagsAction::class => AnnotatedFactory::class,
|
Action\EditShortcodeTagsAction::class => AnnotatedFactory::class,
|
||||||
|
|
||||||
Middleware\BodyParserMiddleware::class => AnnotatedFactory::class,
|
Middleware\BodyParserMiddleware::class => AnnotatedFactory::class,
|
||||||
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
||||||
|
|
|
@ -37,7 +37,7 @@ return [
|
||||||
[
|
[
|
||||||
'name' => 'rest-edit-tags',
|
'name' => 'rest-edit-tags',
|
||||||
'path' => '/rest/v{version:1}/short-codes/{shortCode}/tags',
|
'path' => '/rest/v{version:1}/short-codes/{shortCode}/tags',
|
||||||
'middleware' => Action\EditTagsAction::class,
|
'middleware' => Action\EditShortcodeTagsAction::class,
|
||||||
'allowed_methods' => ['PUT'],
|
'allowed_methods' => ['PUT'],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
@ -13,7 +13,7 @@ use Shlinkio\Shlink\Rest\Util\RestUtils;
|
||||||
use Zend\Diactoros\Response\JsonResponse;
|
use Zend\Diactoros\Response\JsonResponse;
|
||||||
use Zend\I18n\Translator\TranslatorInterface;
|
use Zend\I18n\Translator\TranslatorInterface;
|
||||||
|
|
||||||
class EditTagsAction extends AbstractRestAction
|
class EditShortcodeTagsAction extends AbstractRestAction
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var ShortUrlServiceInterface
|
* @var ShortUrlServiceInterface
|
||||||
|
@ -25,7 +25,7 @@ class EditTagsAction extends AbstractRestAction
|
||||||
private $translator;
|
private $translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EditTagsAction constructor.
|
* EditShortcodeTagsAction constructor.
|
||||||
* @param ShortUrlServiceInterface $shortUrlService
|
* @param ShortUrlServiceInterface $shortUrlService
|
||||||
* @param TranslatorInterface $translator
|
* @param TranslatorInterface $translator
|
||||||
* @param LoggerInterface|null $logger
|
* @param LoggerInterface|null $logger
|
|
@ -6,15 +6,15 @@ use Prophecy\Prophecy\ObjectProphecy;
|
||||||
use Shlinkio\Shlink\Core\Entity\ShortUrl;
|
use Shlinkio\Shlink\Core\Entity\ShortUrl;
|
||||||
use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException;
|
use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException;
|
||||||
use Shlinkio\Shlink\Core\Service\ShortUrlService;
|
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 ShlinkioTest\Shlink\Common\Util\TestUtils;
|
||||||
use Zend\Diactoros\ServerRequestFactory;
|
use Zend\Diactoros\ServerRequestFactory;
|
||||||
use Zend\I18n\Translator\Translator;
|
use Zend\I18n\Translator\Translator;
|
||||||
|
|
||||||
class EditTagsActionTest extends TestCase
|
class EditShortcodeTagsActionTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var EditTagsAction
|
* @var EditShortcodeTagsAction
|
||||||
*/
|
*/
|
||||||
protected $action;
|
protected $action;
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,7 @@ class EditTagsActionTest extends TestCase
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$this->shortUrlService = $this->prophesize(ShortUrlService::class);
|
$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…
Add table
Reference in a new issue