b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / dev / tests / integration / testsuite / Magento / Store / Model /
Filename/home/dev2.destoffenstraat.com/dev/tests/integration/testsuite/Magento/Store/Model/GroupTest.php
Size1.53 kb
Permissionrw-r--r--
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified28-Jan-2025 06:45
Last accessed23-Aug-2025 02:07
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Store\Model;

use Magento\TestFramework\Helper\Bootstrap;

class GroupTest extends \PHPUnit\Framework\TestCase
{
/**
* @var \Magento\Store\Model\Store
*/
protected $_model;

protected function setUp(): void
{
$this->_model = Bootstrap::getObjectManager()->create(\Magento\Store\Model\Group::class);
}

public function testSetGetWebsite()
{
$this->assertFalse($this->_model->getWebsite());
$website = Bootstrap::getObjectManager()->get(\Magento\Store\Model\StoreManagerInterface::class)->getWebsite();
$this->_model->setWebsite($website);
$actualResult = $this->_model->getWebsite();
$this->assertSame($website, $actualResult);
}

/**
* Tests that getWebsite returns the default site when defaults are passed in for id
*/
public function testGetWebsiteDefault()
{
$this->assertFalse($this->_model->getWebsite());
$website = Bootstrap::getObjectManager()->get(\Magento\Store\Model\StoreManagerInterface::class)->getWebsite();
$this->_model->setWebsite($website);
// Empty string should get treated like no parameter
$actualResult = $this->_model->getWebsite('');
$this->assertSame($website, $actualResult);
// Null string should get treated like no parameter
$actualResult = $this->_model->getWebsite(null);
$this->assertSame($website, $actualResult);
}
}