File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,18 @@ protected function browsershot(): Browsershot
80
80
return $ this ->browsershot ;
81
81
}
82
82
83
+ /**
84
+ * Gets the temp file path
85
+ *
86
+ * @return string
87
+ */
88
+ public function getTempFilePath (): string
89
+ {
90
+ $ this ->generateTempFile ();
91
+
92
+ return $ this ->tempFile ;
93
+ }
94
+
83
95
/**
84
96
* Reads the output from the generated temp file
85
97
*
Original file line number Diff line number Diff line change @@ -34,4 +34,14 @@ public function it_generates_different_content_from_the_facades_once_it_has_been
34
34
35
35
$ this ->assertNotEquals ($ googleContent , $ githubContent );
36
36
}
37
+
38
+ /** @test */
39
+ public function it_returns_the_path_to_the_temp_file ()
40
+ {
41
+ $ pdf = PDF ::loadView ('test ' );
42
+
43
+ $ path = $ pdf ->getTempFilePath ();
44
+
45
+ $ this ->assertFileExists ($ path );
46
+ }
37
47
}
You can’t perform that action at this time.
0 commit comments