<?php
/**
 *
 * @copyright Copyright (c) Miroslav Marek <mirek.marek@web-jet.cz>
 * @license http://www.php-jet.net/license/license.txt
 * @author Miroslav Marek <mirek.marek@web-jet.cz>
 */

namespace JetApplicationModule\Test\REST;


/**
 *
 */
class Test_Gallery_DeleteImageInvalid extends Test_Abstract
{

	/**
	 * @return bool
	 */
	public function isEnabled(): bool
	{
		return count( $this->data['images'] ) > 0;
	}

	/**
	 * @return string
	 */
	protected function _getTitle(): string
	{
		return 'Delete image - unknown (error simulation)';
	}

	/**
	 *
	 */
	public function test(): void
	{
		$gallery_id = isset( $this->data['images'][0] ) ? $this->data['images'][0]['gallery_id'] : 'unknown';

		$this->client->delete( 'gallery/' . $gallery_id . '/image/unknownunknown' );

	}
}
