replacing test entities from DataTablesAdapter with entities from FluidAdaptor
Some checks failed
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline failed
ci/woodpecker/push/functional-tests/3 Pipeline failed
ci/woodpecker/push/functional-tests/4 Pipeline failed
Some checks failed
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline failed
ci/woodpecker/push/functional-tests/3 Pipeline failed
ci/woodpecker/push/functional-tests/4 Pipeline failed
This commit is contained in:
parent
d9a71f8aa7
commit
713941b688
2 changed files with 7 additions and 8 deletions
|
@ -4,9 +4,9 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace DigiComp\FluidRenderFunctions\Tests\Functional\Fixtures\Controller;
|
namespace DigiComp\FluidRenderFunctions\Tests\Functional\Fixtures\Controller;
|
||||||
|
|
||||||
use DigiComp\FlowDataTablesAdapter\Tests\Functional\Fixtures\TestEntity;
|
|
||||||
use Neos\Flow\Mvc\Controller\ActionController;
|
use Neos\Flow\Mvc\Controller\ActionController;
|
||||||
use Neos\Flow\Persistence\Doctrine\Query;
|
use Neos\Flow\Persistence\Doctrine\Query;
|
||||||
|
use Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Tag;
|
||||||
|
|
||||||
class TestController extends ActionController
|
class TestController extends ActionController
|
||||||
{
|
{
|
||||||
|
@ -17,6 +17,6 @@ class TestController extends ActionController
|
||||||
|
|
||||||
public function selectAction()
|
public function selectAction()
|
||||||
{
|
{
|
||||||
$this->view->assign('testEntities', (new Query(TestEntity::class))->execute());
|
$this->view->assign('testEntities', (new Query(Tag::class))->execute());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,9 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace DigiComp\FluidRenderFunctions\Tests\Functional;
|
namespace DigiComp\FluidRenderFunctions\Tests\Functional;
|
||||||
|
|
||||||
use DigiComp\FlowDataTablesAdapter\Tests\Functional\Fixtures\TestEntity;
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
|
||||||
use Neos\Flow\Mvc\Routing\Route;
|
use Neos\Flow\Mvc\Routing\Route;
|
||||||
use Neos\Flow\Tests\FunctionalTestCase;
|
use Neos\Flow\Tests\FunctionalTestCase;
|
||||||
|
use Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Tag;
|
||||||
|
|
||||||
class RenderFunctionsTest extends FunctionalTestCase
|
class RenderFunctionsTest extends FunctionalTestCase
|
||||||
{
|
{
|
||||||
|
@ -46,10 +45,10 @@ class RenderFunctionsTest extends FunctionalTestCase
|
||||||
*/
|
*/
|
||||||
public function itAllowsToRenderTheOptionsArgumentOfSelectNicely(): void
|
public function itAllowsToRenderTheOptionsArgumentOfSelectNicely(): void
|
||||||
{
|
{
|
||||||
$testEntity1 = new TestEntity(new ArrayCollection(), 'hallo');
|
$post1 = new Tag('hallo');
|
||||||
$this->persistenceManager->add($testEntity1);
|
$this->persistenceManager->add($post1);
|
||||||
$testEntity2 = new TestEntity(new ArrayCollection(), 'hallo 2');
|
$post2 = new Tag('hallo 2');
|
||||||
$this->persistenceManager->add($testEntity2);
|
$this->persistenceManager->add($post2);
|
||||||
$this->persistenceManager->persistAll();
|
$this->persistenceManager->persistAll();
|
||||||
|
|
||||||
$response = $this->browser->request('http://localhost/test/fluidrenderfunctions/test/select');
|
$response = $this->browser->request('http://localhost/test/fluidrenderfunctions/test/select');
|
||||||
|
|
Loading…
Reference in a new issue