Compare commits

..

2 commits

Author SHA1 Message Date
296b9a2659 replacing test entities from DataTablesAdapter with entities from FluidAdaptor
Some checks failed
ci/woodpecker/push/code-style Pipeline failed
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 was successful
2024-06-01 23:24:43 +02:00
d9a71f8aa7 fixing description and adding depency to fluid-adaptor 2024-06-01 23:20:41 +02:00
3 changed files with 10 additions and 7 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

@ -8,6 +8,8 @@ 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\Post;
use Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Tag;
class RenderFunctionsTest extends FunctionalTestCase
{
@ -46,10 +48,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');

View file

@ -1,9 +1,10 @@
{
"name": "digicomp/fluid-render-functions",
"description": "Adapter for datatables",
"description": "define fluid based render functions and use them else where",
"type": "neos-package",
"require": {
"neos/flow": "^6.3.5 | ^7.3 | ^8.3",
"neos/fluid-adaptor": "^6.3.5 | ^7.3 | ^8.3",
"php": ">=7.4"
},
"require-dev": {