Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Sep 9, 2024
1 parent e814547 commit c1a1b5f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions tests/unit/Mage/Log/Model/VisitorTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

/**
* OpenMage
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available at https://opensource.org/license/osl-3-0-php
*
* @category OpenMage
* @package OpenMage_Tests
* @copyright Copyright (c) 2024 The OpenMage Contributors (https://www.openmage.org)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

declare(strict_types=1);

namespace OpenMage\Tests\Unit\Mage\Log\Model;

use Mage;
use Mage_Log_Model_Visitor;
use PHPUnit\Framework\TestCase;

class VisitorTest extends TestCase
{
/**
* @var Mage_Log_Model_Visitor
*/
public Mage_Log_Model_Visitor $subject;

public function setUp(): void
{
Mage::app();
$this->subject = Mage::getModel('log/visitor');
}

/**
* @group Mage_Log
* @group Mage_Log_Model
* @runInSeparateProcess
*/
public function testInitServerData(): void
{
$this->assertInstanceOf(Mage_Log_Model_Visitor::class, $this->subject->initServerData());
}
}

0 comments on commit c1a1b5f

Please sign in to comment.