aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests')
-rw-r--r--crates/shirabe/tests/event_dispatcher/event_dispatcher_test.rs2
-rw-r--r--crates/shirabe/tests/plugin/plugin_installer_test.rs4
-rw-r--r--crates/shirabe/tests/repository/filesystem_repository_test.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/tests/event_dispatcher/event_dispatcher_test.rs b/crates/shirabe/tests/event_dispatcher/event_dispatcher_test.rs
index 9cd51a7b..5a6c93e5 100644
--- a/crates/shirabe/tests/event_dispatcher/event_dispatcher_test.rs
+++ b/crates/shirabe/tests/event_dispatcher/event_dispatcher_test.rs
@@ -431,7 +431,7 @@ mockall::mock! {
) -> anyhow::Result<bool>;
fn ensure_binaries_presence(&mut self, package: PackageInterfaceHandle);
fn execute(
- &mut self,
+ &self,
repo: &shirabe::repository::InstalledRepositoryInterfaceHandle,
operations: Vec<AnyOperation>,
dev_mode: bool,
diff --git a/crates/shirabe/tests/plugin/plugin_installer_test.rs b/crates/shirabe/tests/plugin/plugin_installer_test.rs
index e3f89851..5dfb6e06 100644
--- a/crates/shirabe/tests/plugin/plugin_installer_test.rs
+++ b/crates/shirabe/tests/plugin/plugin_installer_test.rs
@@ -173,7 +173,7 @@ impl InstallationManagerInterface for MockInstallationManager {
fn ensure_binaries_presence(&mut self, _package: PackageInterfaceHandle) {}
fn execute(
- &mut self,
+ &self,
_repo: &InstalledRepositoryInterfaceHandle,
_operations: Vec<AnyOperation>,
_dev_mode: bool,
@@ -372,7 +372,7 @@ fn plugin_property(
) -> String {
let plugin = plugin.borrow();
let proxy = plugin
- .as_php_plugin_proxy()
+ .__as_php_plugin_proxy()
.expect("registered plugins are PHP-backed proxies");
match proxy.__get_property(name).unwrap() {
PhpMixed::String(s) => s,
diff --git a/crates/shirabe/tests/repository/filesystem_repository_test.rs b/crates/shirabe/tests/repository/filesystem_repository_test.rs
index 323aff9f..bcdb766e 100644
--- a/crates/shirabe/tests/repository/filesystem_repository_test.rs
+++ b/crates/shirabe/tests/repository/filesystem_repository_test.rs
@@ -103,7 +103,7 @@ mockall::mock! {
) -> anyhow::Result<bool>;
fn ensure_binaries_presence(&mut self, package: PackageInterfaceHandle);
fn execute(
- &mut self,
+ &self,
repo: &shirabe::repository::InstalledRepositoryInterfaceHandle,
operations: Vec<AnyOperation>,
dev_mode: bool,