<commit_before><?php
/**
 * Empty class to get stub for tests
 * User: <NAME> <<EMAIL>>
 */
namespace Praxigento\Wallet\Setup;


include_once(__DIR__ . '/../phpunit_bootstrap.php');

class InstallData_UnitTest extends \Praxigento\Core\Test\BaseMockeryCase
{
    /** @var  \Mockery\MockInterface */
    private $mConn;
    /** @var  \Mockery\MockInterface */
    private $mRepoGeneric;
    /** @var  InstallData */
    private $obj;

    protected function setUp()
    {
        parent::setUp();
        $this->mConn = $this->_mockConn();
        $mResource = $this->_mockResourceConnection($this->mConn);
        $this->mRepoGeneric = $this->_mockRepoGeneric();
        $this->obj = new InstallData(
            $mResource,
            $this->mRepoGeneric
        );
    }

    public function test_install()
    {
        /* === Setup Mocks === */
        $mSetup = $this->_mock(\Magento\Framework\Setup\ModuleDataSetupInterface::class);
        $mSetup->shouldReceive('startSetup')->once();
        $mSetup->shouldReceive('endSetup')->once();
        $mContext = $this->_mock(\Magento\Framework\Setup\ModuleContextInterface::class);
        // $this->_setup();
        $this->mConn->shouldReceive('getTableName')->twice();
        $this->mConn->shouldReceive('insertArray')->twice();
        /* === Call and asserts  === */
        $this->obj->install($mSetup, $mContext);
    }

}<commit_msg>MOBI-280 - Unit tests and code coverage after grids (mass action: comment styles)<commit_after><?php
/**
 * Empty class to get stub for tests
 * User: <NAME> <<EMAIL>>
 */
namespace Praxigento\Wallet\Setup;


include_once(__DIR__ . '/../phpunit_bootstrap.php');

class InstallData_UnitTest extends \Praxigento\Core\Test\BaseMockeryCase
{
    /** @var  \Mockery\MockInterface */
    private $mConn;
    /** @var  \Mockery\MockInterface */
    private $mRepoGeneric;
    /** @var  InstallData */
    private $obj;

    protected function setUp()
    {
        parent::setUp();
        $this->mConn = $this->_mockConn();
        $mResource = $this->_mockResourceConnection($this->mConn);
        $this->mRepoGeneric = $this->_mockRepoGeneric();
        $this->obj = new InstallData(
            $mResource,
            $this->mRepoGeneric
        );
    }

    public function test_install()
    {
        /** === Setup Mocks === */
        $mSetup = $this->_mock(\Magento\Framework\Setup\ModuleDataSetupInterface::class);
        $mSetup->shouldReceive('startSetup')->once();
        $mSetup->shouldReceive('endSetup')->once();
        $mContext = $this->_mock(\Magento\Framework\Setup\ModuleContextInterface::class);
        // $this->_setup();
        $this->mConn->shouldReceive('getTableName')->twice();
        $this->mConn->shouldReceive('insertArray')->twice();
        /** === Call and asserts  === */
        $this->obj->install($mSetup, $mContext);
    }

}
{'fraction_non_alphanumeric': 0.17167832167832167, 'fraction_numerical': 0.001048951048951049, 'mean_word_length': 2.7793923381770145, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '232563', 'n_tokens_mistral': 864, 'n_tokens_neox': 854, 'n_words': 141}