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

Fake success instead of failure on file operations #274

Merged
merged 1 commit into from
May 12, 2022
Merged

Conversation

cadic
Copy link
Contributor

@cadic cadic commented May 12, 2022

Description of the Change

Custom Emitter will fake success for all file operations. It will prevent SyncEmitter from doing any output with print_r during initialization and performing requests.

Closes #271

Verification Process

  1. Install and activate Sophi for WordPress
  2. Install and activate Debug Bar for Sophi
  3. Make directory read-only at wp-content/plugins/sophi/vendor/snowplow/snowplow-tracker
  4. Create new post/page with Sophi Block
  5. Click "Update"
  6. Expected to successfully save post

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Credits

Props @

@cadic cadic self-assigned this May 12, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@cadic cadic requested a review from jeffpaul May 12, 2022 17:35
@cadic cadic marked this pull request as ready for review May 12, 2022 17:35
@jeffpaul jeffpaul added this to the 1.1.1 milestone May 12, 2022
@jeffpaul jeffpaul merged commit 434a183 into develop May 12, 2022
@jeffpaul jeffpaul deleted the fix/271 branch May 12, 2022 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SyncEmitter produce output in debug mode
2 participants