Author: jablko
Date: Wed Dec  9 14:40:42 2009
New Revision: 4132

Log:
First crack at testing digital object upload with specific parameters

Added:
   trunk/test/functional/qubit/digitalobjectActionsTest.php   (contents, props 
changed)

Added: trunk/test/functional/qubit/digitalobjectActionsTest.php
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/test/functional/qubit/digitalobjectActionsTest.php    Wed Dec  9 
14:40:42 2009        (r4132)
@@ -0,0 +1,21 @@
+<?php
+
+include dirname(__FILE__).'/../../bootstrap/functional.php';
+
+$browser = new sfTestFunctional(new sfBrowser);
+
+$informationObject = new QubitInformationObject;
+$informationObject->save();
+
+$browser
+  ->post('/digitalobject/create', array('file' => 
sfConfig::get('sf_test_dir').'/fixtures/echo.jpg', 'informationObject' => 
sfContext::getInstance()->routing->generate(array('module' => 
'informationobject', 'action' => 'show', 'id' => $informationObject->id))))
+
+  ->with('request')->begin()
+    ->isParameter('module', 'digitalobject')
+    ->isParameter('action', 'edit')
+  ->end()
+
+  ->with('response')->begin()
+    ->isStatusCode(200)
+    ->checkElement('body', '/Untitled/')
+  ->end();

--

You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.


Reply via email to