HEX
Server: Apache
System: Linux webm005.cluster121.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: adventp (418412)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/adventp/www/wp-content/plugins/ut-core/vendor/deliciousbrains/wp-queue/tests/TestJob.php
<?php

use PHPUnit\Framework\TestCase;
use WP_Queue\Job;

class TestJobAbstract extends TestCase {

	protected $instance;

	public function setUp() : void {
		WP_Mock::setUp();
		$this->instance = $this->getMockForAbstractClass( Job::class );
	}

	public function tearDown() : void {
		WP_Mock::tearDown();
	}

	public function test_release() {
		$this->assertFalse( $this->instance->released() );
		$this->instance->release();
		$this->assertTrue( $this->instance->released() );
	}

	public function test_fail() {
		$this->assertFalse( $this->instance->failed() );
		$this->instance->fail();
		$this->assertTrue( $this->instance->failed() );
	}
}