/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/testsuite/Magento/Translation/Model/StringTest.php
38 строк
923 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:44
22 окт 2025, 10:44
264bea2
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Translation\Model; class StringTest extends \PHPUnit\Framework\TestCase { /** * @var \Magento\Translation\Model\StringUtils */ protected $_model; protected function setUp(): void { $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( \Magento\Translation\Model\StringUtils::class ); } public function testConstructor() { $this->assertInstanceOf( \Magento\Translation\Model\ResourceModel\StringUtils::class, $this->_model->getResource() ); } public function testSetGetString() { $expectedString = __METHOD__; $this->_model->setString($expectedString); $actualString = $this->_model->getString(); $this->assertEquals($expectedString, $actualString); } }