Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/component_3.txt
This test checks displaying the component (without attributes).

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<opt:component from="$component">
<opt:display />
</opt:component>

>>>>data.php

$view->component = new myComponent;
$view->datasource = array('foo' => 'bar');

>>>>expected.txt
OUTPUT

>>>>result.txt
VIEW PASSED
COMPONENT DISPLAYED
Return current item: Open Power Template