Skip to content

Commit

Permalink
Added tests for Profiler config
Browse files Browse the repository at this point in the history
  • Loading branch information
GijsL committed Nov 25, 2016
1 parent a21034b commit d0a8bb4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Resources/config/schema/redis-1.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<xsd:element name="doctrine" type="doctrine" minOccurs="0" maxOccurs="1" />
<xsd:element name="monolog" type="monolog" minOccurs="0" maxOccurs="1" />
<xsd:element name="swiftmailer" type="swiftmailer" minOccurs="0" maxOccurs="1" />
<xsd:element name="profiler_storage" type="profiler_storage" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>

Expand Down Expand Up @@ -108,4 +109,9 @@
<xsd:attribute name="client" type="xsd:string" use="required" />
<xsd:attribute name="key" type="xsd:string" use="required" />
</xsd:complexType>

<xsd:complexType name="profiler_storage">
<xsd:attribute name="client" type="xsd:string" use="required" />
<xsd:attribute name="ttl" type="xsd:int" use="required" />
</xsd:complexType>
</xsd:schema>
1 change: 1 addition & 0 deletions Tests/DependencyInjection/Fixtures/config/valid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
</redis:doctrine>
<redis:monolog client="monolog" key="monolog" />
<redis:swiftmailer client="swiftmailer" key="swiftmailer" />
<redis:profiler_storage client="profiler_storage" ttl="3600" />
</redis:config>
</container>
3 changes: 3 additions & 0 deletions Tests/DependencyInjection/SncRedisExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ private function getFullYamlConfig()
swiftmailer:
client: default
key: swiftmailer
profiler_storage:
client: default
ttl: 3600
EOF;
}

Expand Down

0 comments on commit d0a8bb4

Please sign in to comment.