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

This commit is contained in:
Ferdinand Kuhl 2024-06-01 23:24:43 +02:00
parent d9a71f8aa7
commit 713941b688
2 changed files with 7 additions and 8 deletions

View file

@ -4,9 +4,9 @@ declare(strict_types=1);
namespace DigiComp\FluidRenderFunctions\Tests\Functional\Fixtures\Controller;
use DigiComp\FlowDataTablesAdapter\Tests\Functional\Fixtures\TestEntity;
use Neos\Flow\Mvc\Controller\ActionController;
use Neos\Flow\Persistence\Doctrine\Query;
use Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Tag;
class TestController extends ActionController
{
@ -17,6 +17,6 @@ class TestController extends ActionController
public function selectAction()
{
$this->view->assign('testEntities', (new Query(TestEntity::class))->execute());
$this->view->assign('testEntities', (new Query(Tag::class))->execute());
}
}

View file

@ -4,10 +4,9 @@ declare(strict_types=1);
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\Tests\FunctionalTestCase;
use Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Tag;
class RenderFunctionsTest extends FunctionalTestCase
{
@ -46,10 +45,10 @@ class RenderFunctionsTest extends FunctionalTestCase
*/
public function itAllowsToRenderTheOptionsArgumentOfSelectNicely(): void
{
$testEntity1 = new TestEntity(new ArrayCollection(), 'hallo');
$this->persistenceManager->add($testEntity1);
$testEntity2 = new TestEntity(new ArrayCollection(), 'hallo 2');
$this->persistenceManager->add($testEntity2);
$post1 = new Tag('hallo');
$this->persistenceManager->add($post1);
$post2 = new Tag('hallo 2');
$this->persistenceManager->add($post2);
$this->persistenceManager->persistAll();
$response = $this->browser->request('http://localhost/test/fluidrenderfunctions/test/select');