Ticket #40270: 40270.2.diff
File 40270.2.diff, 904 bytes (added by , 4 years ago) |
---|
-
tests/phpunit/tests/rest-api/rest-posts-controller.php
2835 2835 $request->set_param( 'force', 'false' ); 2836 2836 $response = $this->server->dispatch( $request ); 2837 2837 2838 $this->assertNotInstanceOf( 'WP_Error', $response );2839 2838 $this->assertEquals( 200, $response->get_status() ); 2840 2839 $data = $response->get_data(); 2841 2840 $this->assertEquals( 'Deleted post', $data['title']['raw'] ); … … 2850 2849 $request['force'] = true; 2851 2850 $response = $this->server->dispatch( $request ); 2852 2851 2853 $this->assertNotInstanceOf( 'WP_Error', $response );2854 2852 $this->assertEquals( 200, $response->get_status() ); 2855 2853 $data = $response->get_data(); 2856 2854 $this->assertTrue( $data['deleted'] );