Compare commits
No commits in common. "296b9a2659945c993233e73d0190bef097f03cb9" and "0de901d45c485cfcda1f656c3ba0d2bdd1d56255" have entirely different histories.
296b9a2659
...
0de901d45c
3 changed files with 7 additions and 10 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(Tag::class))->execute());
|
$this->view->assign('testEntities', (new Query(TestEntity::class))->execute());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,6 @@ 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
|
||||||
{
|
{
|
||||||
|
@ -48,10 +46,10 @@ class RenderFunctionsTest extends FunctionalTestCase
|
||||||
*/
|
*/
|
||||||
public function itAllowsToRenderTheOptionsArgumentOfSelectNicely(): void
|
public function itAllowsToRenderTheOptionsArgumentOfSelectNicely(): void
|
||||||
{
|
{
|
||||||
$post1 = new Tag('hallo');
|
$testEntity1 = new TestEntity(new ArrayCollection(), 'hallo');
|
||||||
$this->persistenceManager->add($post1);
|
$this->persistenceManager->add($testEntity1);
|
||||||
$post2 = new Tag('hallo 2');
|
$testEntity2 = new TestEntity(new ArrayCollection(), 'hallo 2');
|
||||||
$this->persistenceManager->add($post2);
|
$this->persistenceManager->add($testEntity2);
|
||||||
$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,10 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "digicomp/fluid-render-functions",
|
"name": "digicomp/fluid-render-functions",
|
||||||
"description": "define fluid based render functions and use them else where",
|
"description": "Adapter for datatables",
|
||||||
"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