?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/plugins/caldera-forms/vendor/a5hleyrich/wp-queue/tests/



?? Go up: /home/webdevt/www/wdp/wp-content/plugins/caldera-forms/vendor/a5hleyrich/wp-queue

?? Viewing: TestJob.php

<?php

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

class TestJobAbstract extends TestCase {

	protected $instance;

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

	public function tearDown() {
		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() );
	}
}


??

??