? NPM Resource Changed PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Scovixo112
Scovixo112
7 Sep 2023

Pull Request for Issue # .
add Test unit

Summary of Changes

public function testSetAndGetElementWithEmptyValue(): void
{
// Create a new Result object
$obj = $this->createNoConstructorMock();

// Set an element with an empty value
$obj->setElement('key1', '');

// Get the element and assert its value
$this->assertEquals('', $obj->getElement('key1'));

// Set another element with an empty value
$obj->setElement('key2', '');

// Get the second element and assert its value
$this->assertEquals('', $obj->getElement('key2'));

// Attempt to get a non-existent element should return null
$this->assertNull($obj->getElement('non_existent_key'));

}

Testing Instructions

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 7 Sep 2023
Category Repository Unit Tests Installation
avatar Scovixo112 Scovixo112 - open - 7 Sep 2023
avatar Scovixo112 Scovixo112 - change - 7 Sep 2023
Status New Pending
avatar RxChin RxChin - change - 7 Sep 2023
Labels Added: ? PR-4.3-dev
avatar joomla-cms-bot joomla-cms-bot - change - 7 Sep 2023
Category Repository Unit Tests Installation Repository Unit Tests Installation Libraries
avatar richard67
richard67 - comment - 7 Sep 2023

@Scovixo112 What are you trying to do here? Or have you committed o the wrong repository?

avatar joomla-cms-bot joomla-cms-bot - change - 7 Sep 2023
Category Repository Unit Tests Installation Libraries Repository Unit Tests Installation Libraries NPM Change
avatar brianteeman
brianteeman - comment - 7 Sep 2023

This is not the way to test sonarcloud!!

avatar brianteeman brianteeman - change - 7 Sep 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-09-07 12:11:05
Closed_By brianteeman
Labels Added: NPM Resource Changed
avatar brianteeman brianteeman - close - 7 Sep 2023

Add a Comment

Login with GitHub to post a comment