diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2012-04-17 14:10:43 +0200 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2012-04-17 14:10:43 +0200 |
commit | c45ce44912e3e54ecdf0a19af2d7df1960aa2962 (patch) | |
tree | 99ce194837941fac3a4e635759e73a8f7bf99852 /_testing/tests/testing/inttests_phpquery.test.php | |
parent | 23725b9188f335447080ba9cc8e1f32cdec2e472 (diff) | |
download | rpg-c45ce44912e3e54ecdf0a19af2d7df1960aa2962.tar.gz rpg-c45ce44912e3e54ecdf0a19af2d7df1960aa2962.tar.bz2 |
added phpquery to test response
This should make it much easier to do integration tests based on the new
TestRequest utility.
Diffstat (limited to '_testing/tests/testing/inttests_phpquery.test.php')
-rw-r--r-- | _testing/tests/testing/inttests_phpquery.test.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/_testing/tests/testing/inttests_phpquery.test.php b/_testing/tests/testing/inttests_phpquery.test.php new file mode 100644 index 000000000..188d834cb --- /dev/null +++ b/_testing/tests/testing/inttests_phpquery.test.php @@ -0,0 +1,18 @@ +<?php + +/** + * @group integration + */ +class InttestsPHPQueryTest extends DokuWikiTest { + /** + * Execute the simplest possible request and check the + * meta generator tag is set to "DokuWiki" + */ + function testSimpleRun() { + $request = new TestRequest(); + + $response = $request->execute(); + + $this->assertEquals('DokuWiki', $response->queryHTML('meta[name="generator"]')->attr('content') ); + } +} |