diff --git a/tst/PrivateBinTest.php b/tst/PrivateBinTest.php index c10f13a..3caf086 100644 --- a/tst/PrivateBinTest.php +++ b/tst/PrivateBinTest.php @@ -716,15 +716,14 @@ class PrivateBinTest extends PHPUnit_Framework_TestCase $expiredPaste = Helper::getPaste(array('expire_date' => 1344803344)); $this->_model->create(Helper::getPasteId(), $expiredPaste); $_SERVER['QUERY_STRING'] = Helper::getPasteId(); + $_SERVER['HTTP_X_REQUESTED_WITH'] = 'JSONHttpRequest'; ob_start(); new PrivateBin; $content = ob_get_contents(); ob_end_clean(); - $this->assertRegExp( - '#