Skip to content

Commit

Permalink
fix prophecy
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jul 23, 2024
1 parent 6a6e726 commit 3fda27d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"jackalope/jackalope-doctrine-dbal": "^1.2",
"jms/serializer-bundle": "^2.4|^3.5",
"phpunit/phpunit": "^9.6",
"phpspec/prophecy-phpunit": "^2.2",
"knplabs/knp-components": "^1.2|^2.3",
"symfony/expression-language" : "^4.4|^5.4",
"symfony/twig-bundle": "^4.4|^5.4",
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/DependencyInjection/ConfigSourcePassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@

use FOS\ElasticaBundle\DependencyInjection\Compiler\ConfigSourcePass;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;

class ConfigSourcePassTest extends TestCase
{
use ProphecyTrait;

/** @var ContainerBuilder */
private $container;

Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Elastica/IndexTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
use FOS\ElasticaBundle\Elastica\IndexTemplate;
use Elastica\IndexTemplate as BaseIndexTemplate;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* @author Dmitry Balabka <dmitry.balabka@intexsys.lv>
*/
class IndexTemplateTest extends TestCase
{
use ProphecyTrait;

public function testInstantiate()
{
$template = new IndexTemplate($this->prophesize(Client::class)->reveal(), 'some_name');
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Index/IndexTemplateManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
use Elastica\IndexTemplate;
use FOS\ElasticaBundle\Index\IndexTemplateManager;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* @author Dmitry Balabka <dmitry.balabka@intexsys.lv>
*/
class IndexTemplateManagerTest extends TestCase
{
use ProphecyTrait;

/**
* Test get index template
*
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Index/TemplateResetterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
use FOS\ElasticaBundle\Index\TemplateResetter;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* @author Dmitry Balabka <dmitry.balabka@intexsys.lv>
*/
class TemplateResetterTest extends TestCase
{
use ProphecyTrait;

/**
* @var ManagerInterface
*/
Expand Down

0 comments on commit 3fda27d

Please sign in to comment.