mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Update the testFromWcOrderMaxStringLength() test to match the new title sanitization and trimming
This commit is contained in:
parent
beb14ea95a
commit
811c921b41
1 changed files with 3 additions and 2 deletions
|
@ -312,11 +312,12 @@ class ItemFactoryTest extends TestCase
|
|||
|
||||
$result = $testee->from_wc_order($order);
|
||||
$item = current($result);
|
||||
|
||||
/**
|
||||
* @var Item $item
|
||||
*/
|
||||
$this->assertEquals(mb_substr($name, 0, 127), $item->name());
|
||||
$this->assertEquals(substr($description, 0, 127), $item->description());
|
||||
$this->assertEquals(substr( strip_shortcodes( wp_strip_all_tags( $name ) ), 0, 127 ), $item->name());
|
||||
$this->assertEquals(substr( strip_shortcodes( wp_strip_all_tags( $description ) ), 0, 127 ), $item->description());
|
||||
}
|
||||
|
||||
public function testFromPayPalResponse()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue