phpcs
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 46s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 58s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Failing after 58s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 59s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 55s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 55s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Failing after 55s
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 46s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 58s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Failing after 58s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 59s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 55s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 55s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Failing after 55s
This commit is contained in:
parent
b31b9e22fb
commit
6ec1079c80
2 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ abstract class Base {
|
||||||
* @param int $activitypub_event_id The ActivityPub events ID.
|
* @param int $activitypub_event_id The ActivityPub events ID.
|
||||||
*/
|
*/
|
||||||
public function delete( $activitypub_event_id ) {
|
public function delete( $activitypub_event_id ) {
|
||||||
$post_id = self::get_post_id_from_activitypub_id( $activitypub_event_id);
|
$post_id = self::get_post_id_from_activitypub_id( $activitypub_event_id );
|
||||||
|
|
||||||
if ( ! $post_id ) {
|
if ( ! $post_id ) {
|
||||||
return new WP_Error(
|
return new WP_Error(
|
||||||
|
|
|
@ -135,7 +135,7 @@ class Test_VS_Event_List extends \WP_UnitTestCase {
|
||||||
$events = get_posts( array( 'post_type' => IntegrationsVS_Event_List::get_post_type() ) );
|
$events = get_posts( array( 'post_type' => IntegrationsVS_Event_List::get_post_type() ) );
|
||||||
$this->assertCount( 1, $events );
|
$this->assertCount( 1, $events );
|
||||||
$event = $events[0];
|
$event = $events[0];
|
||||||
$this->assertStringContainsString( 'Updated address' , get_post_meta( $event->ID, 'event-location', true ) );
|
$this->assertStringContainsString( 'Updated address', get_post_meta( $event->ID, 'event-location', true ) );
|
||||||
|
|
||||||
// We should see the updates.
|
// We should see the updates.
|
||||||
$this->assertEquals( 'Updated name', $event->post_title );
|
$this->assertEquals( 'Updated name', $event->post_title );
|
||||||
|
|
Loading…
Reference in a new issue