Numerical simulation of water injection in discrete fractured media with capillary pressure is a challenge. Dual-porosity models in view of their strength and simplicity can be mainly used for sugar-cube representation of fractured media. In such a representation, the transfer function between the fracture and the matrix block can be readily calculated for water-wet media. For a mixed-wet system, the evaluation of the transfer function becomes complicated due to the effect of gravity. In this work, they use a discrete-fracture model in which the fractures are discretized as one dimensional entities to account for fracture thickness by an integral form of the flow equations. This simple step greatly improves the numerical solution. Then the discrete-fracture model is implemented using a Galerkin finite element method. The robustness and the accuracy of the approach are shown through several examples.