Skip to content

Commit

Permalink
Adds more test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Manderson committed Sep 15, 2014
1 parent 4708033 commit 2c08350
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions tests/ConfigTest/full-config.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<phruts-config>
<action-mappings>
<action path="/test" type="\\Phruts\\Actions\\ForwardAction">

<data-sources>
<data-source>
<set-property property="dsn" value="sqlite::memory:" />
</data-source>
</data-sources>

<form-beans>
<form-bean name="bean1" type="\\Example\\FormBeanOne"/>
<form-bean name="bean2" type="\\Example\\FormBeanTwo"/>
</form-beans>

<global-exceptions>
<exception type="\\Example\\SomeException"
key="some.exception.key"
path="../app/Resources/views/error.html.twig"/>
</global-exceptions>

<global-forwards>
<forward name="login" path="../app/Resources/views/login.html.twig"/>
<forward name="home" path="../app/Resources/views/home.html.twig"/>
</global-forwards>

<action-mappings>
<action path="/login"
type="\\Example\\Action\\LoginAction"
name="bean1"
scope="request"
input="../app/Resources/views/login.html.twig">
<forward name="ok" path="../app/Resources/views/home.html.twig"/>
<forward name="fail" path="../app/Resources/views/login.html.twig"/>
</action>

<action path="/pay"
type="\\Example\\MakePaymentAction"
name="bean2"
scope="request"
input="../app/Resources/views/payment.html.twig">
<forward name="success" path="../app/Resources/views/thankYou.html.twig"/>
<forward name="error" path="../app/Resources/views/paymentFailure.html.twig"/>
</action>
</action-mappings>

<controller processorClass="\\Example\\MyRequestProcessor"/>
<!--<plug-in className="\\Example\\MyExamplePlugin">-->
<!--<set-property-->
<!--property="config"-->
<!--value="somewhere.yaml"/>-->
<!--</plug-in>-->

<message-resources parameter="\\Action\\MessageResources"/>
</phruts-config>

0 comments on commit 2c08350

Please sign in to comment.