Compare commits
2 commits
0de901d45c
...
296b9a2659
Author | SHA1 | Date | |
---|---|---|---|
296b9a2659 | |||
d9a71f8aa7 |
3 changed files with 10 additions and 7 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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,8 @@ use DigiComp\FlowDataTablesAdapter\Tests\Functional\Fixtures\TestEntity;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
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\Post;
|
||||||
|
use Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Tag;
|
||||||
|
|
||||||
class RenderFunctionsTest extends FunctionalTestCase
|
class RenderFunctionsTest extends FunctionalTestCase
|
||||||
{
|
{
|
||||||
|
@ -46,10 +48,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');
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "digicomp/fluid-render-functions",
|
"name": "digicomp/fluid-render-functions",
|
||||||
"description": "Adapter for datatables",
|
"description": "define fluid based render functions and use them else where",
|
||||||
"type": "neos-package",
|
"type": "neos-package",
|
||||||
"require": {
|
"require": {
|
||||||
"neos/flow": "^6.3.5 | ^7.3 | ^8.3",
|
"neos/flow": "^6.3.5 | ^7.3 | ^8.3",
|
||||||
|
"neos/fluid-adaptor": "^6.3.5 | ^7.3 | ^8.3",
|
||||||
"php": ">=7.4"
|
"php": ">=7.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue