~unity-api-team/unity-scope-snappy/setup_translations

« back to all changes in this revision

Viewing changes to store/actions/uninstall_runner_test.go

  • Committer: Tarmac
  • Author(s): Kyle Fazzari
  • Date: 2015-07-08 13:47:05 UTC
  • mfrom: (8.11.6 unity-scope-snappy)
  • Revision ID: tarmac-20150708134705-bgldi9h5i8hpwlcq
Add DBus client for communicating with progress daemon.

Approved by Xavi Garcia, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
func TestUninstallActionRunnerRun(t *testing.T) {
13
13
        actionRunner, _ := NewUninstallRunner()
14
14
 
15
 
        packageManager := new(fakes.FakeManager)
 
15
        packageManager := new(fakes.FakeWebdmManager)
16
16
 
17
17
        response, err := actionRunner.Run(packageManager, "foo")
18
18
        if err != nil {
44
44
func TestUninstallActionRunnerRun_uninstallationFailure(t *testing.T) {
45
45
        actionRunner, _ := NewUninstallRunner()
46
46
 
47
 
        packageManager := &fakes.FakeManager{FailUninstall: true}
 
47
        packageManager := &fakes.FakeWebdmManager{FailUninstall: true}
48
48
 
49
49
        response, err := actionRunner.Run(packageManager, "foo")
50
50
        if err == nil {