/**
  * @covers charitable_is_donation_receipt_page
  */
 public function test_is_donation_receipt_page()
 {
     $page = charitable_get_donation_receipt_page_permalink(false, array('donation_id' => self::$donation_id));
     $this->go_to($page);
     $this->assertTrue(charitable_is_donation_receipt_page());
 }
Пример #2
0
 /**
  * @covers Charitable_Public::disable_comments_on_application_pages()
  */
 function test_comments_disabled_on_donation_receipt_page()
 {
     $this->set_charitable_option('donation_form_display', 'separate_page');
     $page = charitable_get_donation_receipt_page_permalink(false, array('donation_id' => self::$donation_id));
     $this->go_to($page);
     $comments_enabled = Charitable_Public::get_instance()->disable_comments_on_application_pages(true, self::$donation_id);
     $this->assertFalse($comments_enabled);
 }