Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing unit tests

  • Loading branch information...
commit 15d87d09f052cb3687010cf54a05c24b59056e04 1 parent 27df363
@chdemko chdemko authored
View
4 tests/suites/unit/joomla/document/opensearch/JDocumentOpensearchTest.php
@@ -66,7 +66,9 @@ public function testRender()
$this->assertThat(
$this->object->render(),
- $this->equalTo('<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"><ShortName>ShortName</ShortName><Description>Description</Description><InputEncoding>UTF-8</InputEncoding><Url type="application/opensearchdescription+xml" rel="self" template=""/><Url type="text/html" template="http://www.example.com"/><Url type="application/rss+xml" rel="suggestions" template="http://www.example.com?format=feed"/></OpenSearchDescription>')
+ $this->equalTo('<?xml version="1.0" encoding="utf-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"><ShortName>ShortName</ShortName><Description>Description</Description><InputEncoding>UTF-8</InputEncoding><Url type="application/opensearchdescription+xml" rel="self" template=""/><Url type="text/html" template="http://www.example.com"/><Url type="application/rss+xml" rel="suggestions" template="http://www.example.com?format=feed"/></OpenSearchDescription>
+')
);
View
26 tests/suites/unit/joomla/form/fields/JFormFieldCheckboxesTest.php
@@ -314,19 +314,19 @@ public function testGetOptions()
{
$formFieldCheckboxes = new JFormFieldCheckboxes;
- $option1 = new JObject;
- $option1->set('value','yellow');
- $option1->set('text','yellow');
- $option1->set('disable',false);
- $option1->set('class','');
- $option1->set('onclick','');
-
- $option2 = new JObject;
- $option2->set('value','green');
- $option2->set('text','green');
- $option2->set('disable',false);
- $option2->set('class','');
- $option2->set('onclick','');
+ $option1 = new stdClass;
+ $option1->value = 'yellow';
+ $option1->text = 'yellow';
+ $option1->disable = false;
+ $option1->class = '';
+ $option1->onclick = '';
+
+ $option2 = new stdClass;
+ $option2->value = 'green';
+ $option2->text = 'green';
+ $option2->disable = false;
+ $option2->class = '';
+ $option2->onclick = '';
$optionsExpected = array($option1,$option2);
Please sign in to comment.
Something went wrong with that request. Please try again.