Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Change commit #41628

Closed
wants to merge 55 commits into from
Closed

Test Change commit #41628

wants to merge 55 commits into from

Conversation

Scovixo112
Copy link

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

@richard67
Copy link
Member

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

@joomla-cms-bot joomla-cms-bot added the NPM Resource Changed This Pull Request can't be tested by Patchtester label Sep 7, 2023
@brianteeman
Copy link
Contributor

This is not the way to test sonarcloud!!

@brianteeman brianteeman closed this Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NPM Resource Changed This Pull Request can't be tested by Patchtester Unit/System Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants