public function testNestedView() { $c = new Category(); $c->create(array('name' => 'Foo')); $action = new CreateProduct(); $view = $action->asView('ActionKit\\View\\StackView', array('no_form' => true, 'no_layout' => true)); $this->assertNotNull($view); $view->buildRelationalActionViewForExistingRecords('categories'); $html = $view->getContainer()->render(); ok($html); # $dom = new DOMDocument; # $dom->load($html); $c->delete(); }